(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8029],{509:(e,t,n)=>{"use strict";n.d(t,{G8:()=>O,Gv:()=>c,Kg:()=>d,Mu:()=>M,Nn:()=>U,Om:()=>l,SL:()=>_,Tn:()=>p,W2:()=>B,Z3:()=>g,_4:()=>a,b0:()=>u,cC:()=>I,cM:()=>y,cy:()=>h,cz:()=>P,ft:()=>v,hg:()=>b,iQ:()=>F,jc:()=>S,l$:()=>N,nB:()=>L,nF:()=>D,rB:()=>R,tB:()=>w,u0:()=>C,uU:()=>E,vy:()=>j,xD:()=>A,xi:()=>k});var r="undefined",i=typeof window!==r,o=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],a=1e-7,s={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function l(e,t,n,r){return(e*r+t*n)/(n+r)}function u(e){return typeof e===r}function c(e){return e&&"object"==typeof e}function h(e){return Array.isArray(e)}function d(e){return"string"==typeof e}function p(e){return"function"==typeof e}function f(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function m(e,t){var n,r=d(t)?{separator:t}:t,i=r.separator,a=void 0===i?",":i,s=r.isSeparateFirst,l=r.isSeparateOnlyOpenClose,u=r.isSeparateOpenClose,c=void 0===u?l:u,h=r.openCloseCharacters,p=void 0===h?o:h,m=RegExp("(\\s*"+a+"\\s*|"+p.map(function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n}).join("|")+"|\\s+)","g"),g=e.split(m).filter(Boolean),y=g.length,v=[],b=[];function w(){return!!b.length&&(v.push(b.join("")),b=[],!0)}for(var _=0;_-1?e[r]:n}var k=function(){var e=w(),t=i&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=w();return window.setTimeout(function(){t(n-e)},1e3/60)}}(),E=function(){var e=i&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function A(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in t)t.push(n);return t}function S(e,t){var n=b(e),r=n.value,i=n.unit;if(c(t)){var o=t[i];if(o){if(p(o))return o(r);else if(s[i])return s[i](r,o)}}else if("%"===i)return r*t/100;return s[i]?s[i](r):r}function T(e,t,n){return[[D(t[0],a),D(t[0]*e[1]/e[0],a)],[D(t[1]*e[0]/e[1],a),D(t[1],a)]].filter(function(e){return e.every(function(e,r){return n?e<=t[r]:e>=t[r]})})[0]||e}function C(e,t,n,r){if(!r)return e.map(function(e,r){return Math.max(t[r],Math.min(e,n[r]))});var i=e[0],o=e[1],a=T(e,t,!1),s=a[0],l=a[1],u=T(e,n,!0),c=u[0],h=u[1];return ic||o>h)&&(i=c,o=h),[i,o]}function P(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function O(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function M(e,t){var n=t[0]-e[0],r=Math.atan2(t[1]-e[1],n);return r>=0?r:r+2*Math.PI}function R(e){var t=[0,1].map(function(t){return O(e.map(function(e){return e[t]}))}),n=M(t,e[0]),r=M(t,e[1]);return nr&&r-n<-Math.PI?1:-1}function N(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function D(e,t){return t?Math.round(e/t)*t:e}function I(e,t){return e.forEach(function(n,r){e[r]=D(e[r],t)}),e}function L(e,t){return e.classList?e.classList.contains(t):!!e.className.match(RegExp("(\\s|^)"+t+"(\\s|$)"))}function F(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function j(e,t){if(e.classList)e.classList.remove(t);else{var n=RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function B(e,t,n,r){e.addEventListener(t,n,r)}function U(e,t,n,r){e.removeEventListener(t,n,r)}},666:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>d,If:()=>h,O3:()=>c,r9:()=>p});var r=n(16503),i=n(40697),o=n(54578),a=n(87613),s=n(68827),l=n(55729),u=n(88990);function c(e){var t;let{onChange:n,defaultIndex:i,index:o,allowMultiple:a,allowToggle:c,...h}=e;(function(e){let t=e.index||e.defaultIndex,n=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,s.R)({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})})(e),t=e,(0,s.R)({condition:!!(t.allowMultiple&&t.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"});let d=(0,u.Of)(),[p,f]=(0,l.useState)(-1);(0,l.useEffect)(()=>()=>{f(-1)},[]);let[m,g]=(0,r.i)({value:o,defaultValue:()=>a?i??[]:i??-1,onChange:n});return{index:m,setIndex:g,htmlProps:h,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(m)?m.includes(e):m===e),{isOpen:t,onChange:t=>{null!==e&&(a&&Array.isArray(m)?g(t?m.concat(e):m.filter(t=>t!==e)):t?g(e):c&&g(-1))}}},focusedIndex:p,setFocusedIndex:f,descendants:d}}let[h,d]=(0,o.q)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function p(e){var t,n;let{isDisabled:r,isFocusable:o,id:c,...h}=e,{getAccordionItemProps:p,setFocusedIndex:f}=d(),m=(0,l.useRef)(null),g=(0,l.useId)(),y=c??g,v=`accordion-button-${y}`,b=`accordion-panel-${y}`;t=e,(0,s.R)({condition:!!(t.isFocusable&&!t.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `});let{register:w,index:_,descendants:x}=(0,u.v3)({disabled:r&&!o}),{isOpen:k,onChange:E}=p(-1===_?null:_);n={isOpen:k,isDisabled:r},(0,s.R)({condition:n.isOpen&&!!n.isDisabled,message:"Cannot open a disabled accordion item"});let A=(0,l.useCallback)(()=>{E?.(!k),f(_)},[_,f,k,E]),S=(0,l.useCallback)(e=>{let t={ArrowDown:()=>{let e=x.nextEnabled(_);e?.node.focus()},ArrowUp:()=>{let e=x.prevEnabled(_);e?.node.focus()},Home:()=>{let e=x.firstEnabled();e?.node.focus()},End:()=>{let e=x.lastEnabled();e?.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[x,_]),T=(0,l.useCallback)(()=>{f(_)},[f,_]),C=(0,l.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,i.Px)(w,m,t),id:v,disabled:!!r,"aria-expanded":!!k,"aria-controls":b,onClick:(0,a.H)(e.onClick,A),onFocus:(0,a.H)(e.onFocus,T),onKeyDown:(0,a.H)(e.onKeyDown,S)}},[v,r,k,A,T,S,b,w]),P=(0,l.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:b,"aria-labelledby":v,hidden:!k}},[v,k,b]);return{isOpen:k,isDisabled:r,isFocusable:o,onOpen:()=>{E?.(!0)},onClose:()=>{E?.(!1)},getButtonProps:C,getPanelProps:P,htmlProps:h}}},785:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},932:(e,t,n)=>{var r=n(22346);e.exports=function(e){return r(e,4)}},1136:()=>{},1714:(e,t,n)=>{"use strict";n.d(t,{F8:()=>l,FA:()=>p,FP:()=>i,HQ:()=>f,Ni:()=>c,RZ:()=>u,T9:()=>a,TW:()=>d,gn:()=>o,jk:()=>s,pi:()=>h,qR:()=>m,tn:()=>r});var r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,d=h/2,p=2*h;function f(e){return e>1?0:e<-1?h:Math.acos(e)}function m(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},2005:(e,t,n)=>{"use strict";n.d(t,{HM:()=>s,JF:()=>l,bN:()=>c,yU:()=>u});var r=n(53337),i=n(55729),o=n(48517),a=n(54454);function s(e){(0,o.V1)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var l=(0,r.Cl)((0,r.Cl)({},a.JF),{textComponent:i.Fragment});function u(e){return function(t){return e(i.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o{var r=n(88165);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},3295:(e,t,n)=>{"use strict";e.exports=n(31026)},3448:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(6029),i=n(21938),o=n(49146),a=n(61400),s=n(45460),l=n(2241);let u=(0,s.R)(function(e,t){let n=(0,a.Jn)({...e,ref:t}),s=(0,o.e)();return(0,r.jsx)(l.B.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:s.tabpanel})});u.displayName="TabPanel"},3583:(e,t,n)=>{"use strict";function r(e){return function(t,n){var r=String(t),i=n||{},o=r.match(e.matchPattern);if(!o)return null;var a=o[0],s=r.match(e.parsePattern);if(!s)return null;var l=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:l=i.valueCallback?i.valueCallback(l):l,rest:r.slice(a.length)}}}n.d(t,{A:()=>r})},3670:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(80545);function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var o=0;function a(e,t){let n=/\$/g,r=[e];if(null==t)return r;for(let e of Object.keys(t))if("_"!==e){let i=t[e];"string"==typeof i&&(i=n[Symbol.replace](i,"$$$$")),r=function(e,t,n){let r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,i)=>{""!==e&&r.push(e),t+(1!==e)},Array.isArray(e)?e.forEach(i(this,s)[s],this):i(this,s)[s](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(0,r.A)(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return a(n[this.locale.pluralize(t.smart_count)],t);throw Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return a(n,t)}}function u(e){if(!(null!=e&&e.strings))return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}},3913:e=>{"use strict";var t=Math.PI/180;function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);this.rx=e,this.ry=t,this.ax=r}n.prototype.transform=function(e){var n=Math.cos(this.ax*t),r=Math.sin(this.ax*t),i=[this.rx*(e[0]*n+e[2]*r),this.rx*(e[1]*n+e[3]*r),this.ry*(-e[0]*r+e[2]*n),this.ry*(-e[1]*r+e[3]*n)],o=i[0]*i[0]+i[2]*i[2],a=i[1]*i[1]+i[3]*i[3],s=((i[0]-i[3])*(i[0]-i[3])+(i[2]+i[1])*(i[2]+i[1]))*((i[0]+i[3])*(i[0]+i[3])+(i[2]-i[1])*(i[2]-i[1])),l=(o+a)/2;if(s<1e-10*l)return this.rx=this.ry=Math.sqrt(l),this.ax=0,this;var u=i[0]*i[1]+i[2]*i[3],c=l+(s=Math.sqrt(s))/2,h=l-s/2;return this.ax=1e-10>Math.abs(u)&&1e-10>Math.abs(c-a)?90:180*Math.atan(Math.abs(u)>Math.abs(c-a)?(c-o)/u:u/(c-a))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(c),this.ry=Math.sqrt(h)):(this.ax+=90,this.rx=Math.sqrt(h),this.ry=Math.sqrt(c)),this},n.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx},e.exports=n},4285:(e,t,n)=>{"use strict";function r(e){return function(t,n){var r,i=String(t),o=n||{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=i.match(s);if(!l)return null;var u=l[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return r="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;nr})},5210:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e*=1))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5777:(e,t,n)=>{"use strict";n.d(t,{JL:()=>s,n8:()=>l,rL:()=>u});var r=n(86640),i=n(16930),o=n(10095);function a(e,t){e(t)}function s(e){var t,n,i,o,a,s,l,u=void 0===e?{}:e,c=u.innerRadius,h=u.outerRadius,d=u.cornerRadius,p=u.startAngle,f=u.endAngle,m=u.padAngle,g=u.padRadius,y=(0,r.A)();return null!=c&&(t=y.innerRadius,t(c)),null!=h&&(n=y.outerRadius,n(h)),null!=d&&(i=y.cornerRadius,i(d)),null!=p&&(o=y.startAngle,o(p)),null!=f&&(a=y.endAngle,a(f)),null!=m&&(s=y.padAngle,s(m)),null!=g&&(l=y.padRadius,l(g)),y}function l(e){var t,n,r=void 0===e?{}:e,o=r.x,a=r.y,s=r.defined,l=r.curve,u=(0,i.A)();return o&&(t=u.x,t(o)),a&&(n=u.y,n(a)),s&&u.defined(s),l&&u.curve(l),u}function u(e){var t,n,r,i=void 0===e?{}:e,a=i.startAngle,s=i.endAngle,l=i.padAngle,u=i.value,c=i.sort,h=i.sortValues,d=(0,o.A)();return null===c?d.sort(c):null!=c&&d.sort(c),null===h?d.sortValues(h):null!=h&&d.sortValues(h),null!=u&&d.value(u),null!=l&&(t=d.padAngle,t(l)),null!=a&&(n=d.startAngle,n(a)),null!=s&&(r=d.endAngle,r(s)),d}},6743:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(6029),i=n(21938),o=n(88990),a=n(45460),s=n(2241);let l=(0,a.R)(function(e,t){let{getButtonProps:n}=(0,o.AV)(),a=n(e,t),l={display:"flex",alignItems:"center",width:"100%",outline:0,...(0,o.EF)().button};return(0,r.jsx)(s.B.button,{...a,className:(0,i.cx)("chakra-accordion__button",e.className),__css:l})});l.displayName="AccordionButton"},6760:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(6029),i=n(21938),o=n(78140),a=n(2241);let s=e=>{let{className:t,...n}=e,s=(0,o.$)();return(0,r.jsx)(a.B.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:s.divider})};s.displayName="MenuDivider"},6797:(e,t,n)=>{e.exports=n(95486)("toUpperCase")},6905:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(34889),i=n(62123);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setHours(0,0,0,0),t}},6936:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36486),i=n(34889),o=n(62123);function a(e,t){return(0,o.A)(2,arguments),function(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}(e,-(0,r.A)(t))}},7240:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(20578),i=n(6905),o=n(62123),a=n(14816),s=n(57792),l=n(96268),u=n(34889);function c(e,t,n){(0,o.A)(2,arguments);var c,h=(0,u.A)(e),d=(0,u.A)(t),p=n||{},f=p.locale,m=void 0===f?s.A:f,g=p.weekStartsOn,y=void 0===g?0:g;if(!m.localize)throw RangeError("locale must contain localize property");if(!m.formatLong)throw RangeError("locale must contain formatLong property");if(!m.formatRelative)throw RangeError("locale must contain formatRelative property");var v=function(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,i.A)(t);return Math.round((n.getTime()-(0,r.A)(n)-(a.getTime()-(0,r.A)(a)))/864e5)}(h,d);if(isNaN(v))throw RangeError("Invalid time value");c=v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other";var b=(0,l.A)(h,(0,r.A)(h)),w=(0,l.A)(d,(0,r.A)(d)),_=m.formatRelative(c,b,w,{locale:m,weekStartsOn:y});return(0,a.A)(h,_,{locale:m,weekStartsOn:y})}},7653:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>o,Ho:()=>c,OC:()=>a,hr:()=>l,lo:()=>r,pg:()=>u,sb:()=>h,uo:()=>s});var r,i=n(11612);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,i.C6)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,i.C6)(t,e),t}(o),u=function(e){function t(t,n,i){return e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this}return(0,i.C6)(t,e),t}(o),c=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o}return(0,i.C6)(t,e),t}(u),h=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!=(t=e.value)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.C6)(t,e),t}(o)},7815:e=>{"use strict";var t=2*Math.PI;function n(e,t,n,r){var i=e*n+t*r;return i>1&&(i=1),i<-1&&(i=-1),(e*r-t*n<0?-1:1)*Math.acos(i)}e.exports=function(e,r,i,o,a,s,l,u,c){var h,d,p,f,m,g,y,v,b,w,_,x,k,E,A,S=Math.sin(c*t/360),T=Math.cos(c*t/360),C=T*(e-i)/2+S*(r-o)/2,P=-S*(e-i)/2+T*(r-o)/2;if(0===C&&0===P||0===l||0===u)return[];var O=C*C/((l=Math.abs(l))*l)+P*P/((u=Math.abs(u))*u);O>1&&(l*=Math.sqrt(O),u*=Math.sqrt(O));var M=(h=l,d=u,p=T*(e-i)/2+S*(r-o)/2,f=-S*(e-i)/2+T*(r-o)/2,m=h*h,g=d*d,y=p*p,(b=m*g-m*(v=f*f)-g*y)<0&&(b=0),b/=m*v+g*y,w=(b=Math.sqrt(b)*(a===s?-1:1))*h/d*f,_=-(b*d)/h*p,E=n(1,0,x=(p-w)/h,k=(f-_)/d),A=n(x,k,(-p-w)/h,(-f-_)/d),0===s&&A>0&&(A-=t),1===s&&A<0&&(A+=t),[T*w-S*_+(e+i)/2,S*w+T*_+(r+o)/2,E,A]),R=[],N=M[2],D=M[3],I=Math.max(Math.ceil(Math.abs(D)/(t/4)),1);D/=I;for(var L=0;L{},8442:(e,t,n)=>{"use strict";n.d(t,{RK:()=>a,TT:()=>r,hN:()=>function e(t,n,s,l,u,c,h){if(1===t.length&&(0,i.eW)(t[0]))return[{type:r.literal,value:t[0].value}];for(var d=[],p=0;p{"use strict";n.d(t,{A:()=>r});let r={top:"top",left:"left",right:"right",bottom:"bottom"}},8709:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36486),i=n(34889),o=n(62123);function a(e,t){(0,o.A)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,r.A)(s),u=null==n.weekStartsOn?l:(0,r.A)(n.weekStartsOn);if(!(u>=0&&u<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.A)(e),h=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-(7*(h{"use strict";n.d(t,{A:()=>c});var r=n(56121),i=n.n(r),o=n(55729),a=n(75828),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},h),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},9819:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},10016:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},10095:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(11116);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(1714);function s(){var e=o,t=i,n=null,s=(0,r.A)(0),l=(0,r.A)(a.FA),u=(0,r.A)(0);function c(r){var i,o,c,h,d,p=r.length,f=0,m=Array(p),g=Array(p),y=+s.apply(this,arguments),v=Math.min(a.FA,Math.max(-a.FA,l.apply(this,arguments)-y)),b=Math.min(Math.abs(v)/p,u.apply(this,arguments)),w=b*(v<0?-1:1);for(i=0;i0&&(f+=d);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=f?(v-p*w)/f:0;i0?d*c:0)+w,g[o]={data:r[o],index:i,value:d,startAngle:y,endAngle:h,padAngle:b};return g}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.A)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.A)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.A)(+e),c):u},c}},10500:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(6029);let i=(0,n(30477).w)({viewBox:"0 0 14 14",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},10718:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(29008),i=n(45471),o=n(48982),a=n(8442);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var l=function(){function e(t,n,i,l){void 0===n&&(n=e.defaultLocale);var u,c,h=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=h.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===a.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.hN)(h.ast,h.locales,h.formatters,h.formats,e,void 0,h.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=h.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(h.locales)[0]}},this.getAst=function(){return h.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==l?void 0:l.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,i?Object.keys(u).reduce(function(e,t){var n,o;return e[t]=(n=u[t],(o=i[t])?(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n||{}),o||{}),Object.keys(n).reduce(function(e,t){return e[t]=(0,r.Cl)((0,r.Cl)({},n[t]),o[t]||{}),e},{})):n),e},(0,r.Cl)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.A)(function(){for(var e,t=[],n=0;n0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=i.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},10873:(e,t,n)=>{"use strict";n.d(t,{$x:()=>a,Ei:()=>l,IF:()=>o,O4:()=>r,Zo:()=>s});var r,i=n(29008);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,i.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.C6)(t,e),t}(o)},11027:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,lG:()=>o,uN:()=>a});var r=n(28816);function i(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(e)?t:e)}function a(e){return 1==(e*=1)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.A)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.A)(isNaN(e)?t:e)}},11037:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(37243),i=n(51589),o=n(41885);let a=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),s=r.CU.create({name:"textStyle",priority:101,addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>!!Object.entries((0,r.z6)(e,this.type)).some(([,e])=>!!e)||t.unsetMark(this.name)}}}),l=/^\s*([-+*])\s$/,u=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(a.name,this.editor.getAttributes(s.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.tG)({find:l,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:l,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s.name),editor:this.editor})),[e]}});var c=n(76931),h=n(17399),d=n(70375),p=n(63867),f=n(62040);class m{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos);i={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o=this.editorView.dom.offsetParent;if(!this.element&&(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),o&&(o!=document.body||"static"!=getComputedStyle(o).position)){let n=o.getBoundingClientRect();e=n.left-o.scrollLeft,t=n.top-o.scrollTop}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=i.left-e+"px",this.element.style.top=i.top-t+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,f.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let g=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new p.k_({view:t=>new m(t,e)})}(this.options)]}});var y=n(57398),v=n(91929),b=n(82318),w=n(28548);let _=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.KV)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{selection:n}=t,{$from:i,$to:o}=n,a=e();return 0===i.parentOffset?a.insertContentAt({from:Math.max(i.pos-1,0),to:o.pos},{type:this.name}):(0,r.BQ)(n)?a.insertContentAt(o.pos,{type:this.name}):a.insertContent({type:this.name}),a.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(p.U3.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(p.nh.create(e.doc,t.pos)):e.setSelection(p.U3.create(e.doc,t.pos));else{let i=null==(n=t.parent.type.contentMatch.defaultType)?void 0:n.create();i&&(e.insert(r,i),e.setSelection(p.U3.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.jT)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});var x=n(91892);let k=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),E="textStyle",A=/^(\d+)\.\s$/,S=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(E)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.tG)({find:A,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:A,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(E)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}});var T=n(83902),C=n(35658),P=n(58497);let O=r.YY.create({name:"starterKit",addExtensions(){var e,t,n,r,a,s,l,p,f,m,E,A,O,M,R,N,D,I;let L=[];return!1!==this.options.bold&&L.push(o.yN.configure(null==(e=this.options)?void 0:e.bold)),!1!==this.options.blockquote&&L.push(i.Cv.configure(null==(t=this.options)?void 0:t.blockquote)),!1!==this.options.bulletList&&L.push(u.configure(null==(n=this.options)?void 0:n.bulletList)),!1!==this.options.code&&L.push(c.Cy.configure(null==(r=this.options)?void 0:r.code)),!1!==this.options.codeBlock&&L.push(h.NG.configure(null==(a=this.options)?void 0:a.codeBlock)),!1!==this.options.document&&L.push(d.y.configure(null==(s=this.options)?void 0:s.document)),!1!==this.options.dropcursor&&L.push(g.configure(null==(l=this.options)?void 0:l.dropcursor)),!1!==this.options.gapcursor&&L.push(y.v.configure(null==(p=this.options)?void 0:p.gapcursor)),!1!==this.options.hardBreak&&L.push(v.B.configure(null==(f=this.options)?void 0:f.hardBreak)),!1!==this.options.heading&&L.push(b.D.configure(null==(m=this.options)?void 0:m.heading)),!1!==this.options.history&&L.push(w.B.configure(null==(E=this.options)?void 0:E.history)),!1!==this.options.horizontalRule&&L.push(_.configure(null==(A=this.options)?void 0:A.horizontalRule)),!1!==this.options.italic&&L.push(x.J2.configure(null==(O=this.options)?void 0:O.italic)),!1!==this.options.listItem&&L.push(k.configure(null==(M=this.options)?void 0:M.listItem)),!1!==this.options.orderedList&&L.push(S.configure(null==(R=this.options)?void 0:R.orderedList)),!1!==this.options.paragraph&&L.push(T.f.configure(null==(N=this.options)?void 0:N.paragraph)),!1!==this.options.strike&&L.push(C.n.configure(null==(D=this.options)?void 0:D.strike)),!1!==this.options.text&&L.push(P.E.configure(null==(I=this.options)?void 0:I.text)),L}})},11116:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},11612:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,fX:()=>a});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(14761)._(n(55729)).default.createContext(null)},12894:(e,t,n)=>{"use strict";t.__esModule=!0,t.STACK_OFFSET_NAMES=t.STACK_OFFSETS=void 0,t.default=function(e){return e&&i[e]||i.none};var r=n(96710),i={expand:r.stackOffsetExpand,diverging:r.stackOffsetDiverging,none:r.stackOffsetNone,silhouette:r.stackOffsetSilhouette,wiggle:r.stackOffsetWiggle};t.STACK_OFFSETS=i,t.STACK_OFFSET_NAMES=Object.keys(i)},13442:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},i=n(39779),o={date:(0,i.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a=n(8709),s=n(62123);function l(e,t,n,r){return!function(e,t,n){(0,s.A)(2,arguments);var r=(0,a.A)(e,n),i=(0,a.A)(t,n);return r.getTime()===i.getTime()}(e,t,n)?e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r:r}var u={lastWeek:l,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:l,other:"PP p"},c=n(21725),h={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,c.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,c.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻钟","第二刻钟","第三刻钟","第四刻钟"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,c.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,c.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,c.A)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},d=n(3583),p=n(4285);let f={code:"zh-CN",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return i+"内";else return i+"前";return i},formatLong:o,formatRelative:function(e,t,n,r){var i=u[e];return"function"==typeof i?i(t,n,r,"eeee p"):i},localize:h,match:{ordinalNumber:(0,d.A)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,p.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,p.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,p.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,p.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,p.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},13731:(e,t,n)=>{var r=n(53325),i=n(25725),o=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])})},13984:e=>{function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},14080:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{Kq:()=>A,R0:()=>v,yQ:()=>I});var a={};n.r(a),n.d(a,{getItem:()=>x,removeItem:()=>k,setItem:()=>_});var s=n(31808),l=n(17553);class u extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var h=0;function d(e){return"__private_"+h+++"_"+e}async function p(e){if(401===e.status)throw new u;let t=e.json();if(e.ok)return t;let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}catch{}throw Error(n)}let f=new Map;var m=d("companionHeaders"),g=d("getUrl"),y=d("request");r=Symbol.for("uppy test: getCompanionHeaders");class v{constructor(e,t){Object.defineProperty(this,y,{value:w}),Object.defineProperty(this,g,{value:b}),Object.defineProperty(this,m,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,m)[m]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,m)[m]=e}[r](){return c(this,m)[m]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){return{...{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${v.VERSION}`},...c(this,m)[m]}}onReceiveResponse(e){let{headers:t}=e,n=this.uppy.getState().companion||{},r=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:t.get("i-am")}})}async preflight(e){let t=f.get(this.hostname);if(null!=t)return t;let n=["accept","content-type","uppy-auth-token"],r=(async()=>{try{let t=(await fetch(c(this,g)[g](e),{method:"OPTIONS"})).headers.get("access-control-allow-headers");if(null==t||"*"===t)return f.set(this.hostname,n),n;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${t}`);let r=t.split(",").map(e=>e.trim().toLowerCase());return f.set(this.hostname,r),r}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),f.delete(this.hostname),n}})();return f.set(this.hostname,r),r}async preflightAndHeaders(e){let[t,n]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(n).filter(e=>{let[n]=e;return!!t.includes(n.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${n}`),!1)}))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,y)[y]({...t,path:e})}async post(e,t,n){return void 0===n&&(n=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,y)[y]({...n,path:e,method:"POST",data:t})}async delete(e,t,n){return void 0===t&&(t=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,y)[y]({...n,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function w(e){let{path:t,method:n="GET",data:r,skipPostResponse:i,signal:o}=e;try{let e=await this.preflightAndHeaders(t),a=await (0,s.A)(c(this,g)[g](t),{method:n,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return i||this.onReceiveResponse(a),p(a)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new l.A(`Could not ${n} ${c(this,g)[g](t)}`,{cause:e})}}function _(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})}function x(e){return Promise.resolve(localStorage.getItem(e))}function k(e){return new Promise(t=>{localStorage.removeItem(e),t()})}v.VERSION="3.1.1";let E=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");class A extends v{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||E(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){let[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}onReceiveResponse(e){super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});let t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{let e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if("string"!=typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||a}}var S=n(51598);function T(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var C=0;function P(e){return"__private_"+C+++"_"+e}var O=P("queued"),M=P("emitter"),R=P("isOpen"),N=P("socket"),D=P("handleMessage");i=Symbol.for("uppy test: getSocket"),o=Symbol.for("uppy test: getQueued");class I{constructor(e){Object.defineProperty(this,O,{writable:!0,value:[]}),Object.defineProperty(this,M,{writable:!0,value:S()}),Object.defineProperty(this,R,{writable:!0,value:!1}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return T(this,R)[R]}[i](){return T(this,N)[N]}[o](){return T(this,O)[O]}open(){T(this,N)[N]=new WebSocket(this.opts.target),T(this,N)[N].onopen=()=>{for(T(this,R)[R]=!0;T(this,O)[O].length>0&&T(this,R)[R];){let e=T(this,O)[O].shift();this.send(e.action,e.payload)}},T(this,N)[N].onclose=()=>{T(this,R)[R]=!1},T(this,N)[N].onmessage=T(this,D)[D]}close(){var e;null==(e=T(this,N)[N])||e.close()}send(e,t){if(!T(this,R)[R])return void T(this,O)[O].push({action:e,payload:t});T(this,N)[N].send(JSON.stringify({action:e,payload:t}))}on(e,t){T(this,M)[M].on(e,t)}emit(e,t){T(this,M)[M].emit(e,t)}once(e,t){T(this,M)[M].once(e,t)}}},14126:(e,t,n)=>{var r=n(86891),i=n(70917);e.exports=function(e){return r(i(e))}},14385:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},i=n(39779),o={date:(0,i.A)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},s=n(21725),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"date"===r?n+"日":"year"===r?n+"年":n},era:(0,s.A)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},u=n(3583),c=n(4285);let h={code:"ja",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?n.addSuffix&&r[e].oneWithSuffix?r[e].oneWithSuffix:r[e].one:n.addSuffix&&r[e].otherWithSuffix?r[e].otherWithSuffix.replace("{{count}}",t):r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return i+"後";else return i+"前";return i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^第?\d+(日)?(年)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},14430:e=>{e.exports=function(e,t,n,r){for(var i=n-1,o=e.length;++i{"use strict";n.d(t,{A:()=>h});var r={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},i=n(39779),o={date:(0,i.A)({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s=n(21725),l={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"minute":case"second":return n;case"date":return n+"일";default:return n+"번째"}},era:(0,s.A)({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},u=n(3583),c=n(4285);let h={code:"ko",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return i+" 후";else return i+" 전";return i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},14816:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(34889),i=n(62123),o=n(57792),a=n(96268);function s(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return s("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):s(n+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return s(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};function u(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(n<1)+n-1)),t.setUTCHours(0,0,0,0),t}function c(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var a=u(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=u(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}var h=n(8709),d=n(36486);function p(e,t){(0,i.A)(1,arguments);var n=(0,r.A)(e,t),o=n.getUTCFullYear(),a=t||{},s=a.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,d.A)(l),c=null==a.firstWeekContainsDate?u:(0,d.A)(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(o+1,0,c),p.setUTCHours(0,0,0,0);var f=(0,h.A)(p,t),m=new Date(0);m.setUTCFullYear(o,0,c),m.setUTCHours(0,0,0,0);var g=(0,h.A)(m,t);return n.getTime()>=f.getTime()?o+1:n.getTime()>=g.getTime()?o:o-1}var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+s(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):y(e,t)}function y(e,t){var n=Math.abs(e);return(e>0?"-":"+")+s(Math.floor(n/60),2)+(t||"")+s(n%60,2)}let v={G:function(e,t,n){var r=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return l.y(e,t)},Y:function(e,t,n,r){var i=p(e,r),o=i>0?i:1-i;return"YY"===t?s(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(c(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return l.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var a=function(e,t){(0,i.A)(1,arguments);var n=(0,r.A)(e);return Math.round(((0,h.A)(n,t).getTime()-(function(e,t){(0,i.A)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:(0,d.A)(o),s=null==n.firstWeekContainsDate?a:(0,d.A)(n.firstWeekContainsDate),l=p(e,t),u=new Date(0);return u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0),(0,h.A)(u,t)})(n,t).getTime())/6048e5)+1}(e,o);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){var o=function(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return Math.round((u(t).getTime()-(function(e){(0,i.A)(1,arguments);var t=c(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),u(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):s(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):l.d(e,t)},D:function(e,t,n){var o=function(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):s(o,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return l.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):l.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):l.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):l.s(e,t)},S:function(e,t){return l.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return y(i);default:return y(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return y(i);default:return y(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},t:function(e,t,n,r){return s(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return s((r._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function w(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}let _={p:w,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",w(o,t))}};var x=n(20578),k=["D","DD"],E=["YY","YYYY"];function A(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,P=/''/g,O=/[a-zA-Z]/;function M(e,t,n){(0,i.A)(2,arguments);var s=String(t),l=n||{},u=l.locale||o.A,c=u.options&&u.options.firstWeekContainsDate,h=null==c?1:(0,d.A)(c),p=null==l.firstWeekContainsDate?h:(0,d.A)(l.firstWeekContainsDate);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=u.options&&u.options.weekStartsOn,m=null==f?0:(0,d.A)(f),g=null==l.weekStartsOn?m:(0,d.A)(l.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw RangeError("locale must contain localize property");if(!u.formatLong)throw RangeError("locale must contain formatLong property");var y=(0,r.A)(e);if(!function(e){return(0,i.A)(1,arguments),!isNaN((0,r.A)(e))}(y))throw RangeError("Invalid time value");var b=(0,x.A)(y),w=(0,a.A)(y,b),M={firstWeekContainsDate:p,weekStartsOn:g,locale:u,_originalDate:y};return s.match(T).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,_[t])(e,u.formatLong,M):e}).join("").match(S).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(C)[1].replace(P,"'");var i=v[r];if(i)return l.useAdditionalWeekYearTokens||-1===E.indexOf(n)||A(n,t,e),l.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||A(n,t,e),i(w,n,u.localize,M);if(r.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},15071:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});let r=(0,n(30477).w)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},15565:(e,t,n)=>{var r=n(19515),i=n(24964),o=n(27288);e.exports=function(e){return o(i(e,void 0,r),e+"")}},15695:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},15863:(e,t,n)=>{"use strict";n.d(t,{z:()=>p,R:()=>d});var r=n(6029),i=n(54578),o=n(21938),a=n(55729),s=n(40697),l=n(84535),u=n(45460),c=n(2241);let[h,d]=(0,i.q)({name:"RadioGroupContext",strict:!1}),p=(0,u.R)((e,t)=>{let{colorScheme:n,size:i,variant:u,children:d,className:p,isDisabled:f,isFocusable:m,...g}=e,{value:y,onChange:v,getRootProps:b,name:w,htmlProps:_}=function(e={}){let{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:u,isNative:c,...h}=e,[d,p]=(0,a.useState)(r||""),f=void 0!==n,m=f?n:d,g=(0,a.useRef)(null),y=(0,a.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";let r=e.querySelector(t);r?.focus()},[]),v=(0,a.useId)(),b=`radio-${v}`,w=i||b,_=(0,a.useCallback)(e=>{let n=e&&(0,l.Gv)(e)&&(0,l.Gv)(e.target)?e.target.value:e;f||p(n),t?.(String(n))},[t,f]);return{getRootProps:(0,a.useCallback)((e={},t=null)=>({...e,ref:(0,s.Px)(t,g),role:"radiogroup"}),[]),getRadioProps:(0,a.useCallback)((e={},t=null)=>{let n=c?"checked":"isChecked";return{...e,ref:t,name:w,[n]:null!=m?e.value===m:void 0,onChange(e){_(e)},"data-radiogroup":!0}},[c,w,_,m]),name:w,ref:g,focus:y,setValue:p,value:m,onChange:_,isDisabled:o,isFocusable:u,htmlProps:h}}(g),x=(0,a.useMemo)(()=>({name:w,size:i,onChange:v,colorScheme:n,value:y,variant:u,isDisabled:f,isFocusable:m}),[w,i,v,n,y,u,f,m]);return(0,r.jsx)(h,{value:x,children:(0,r.jsx)(c.B.div,{...b(_,t),className:(0,o.cx)("chakra-radio-group",p),children:d})})});p.displayName="RadioGroup"},15902:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,z:()=>u});var r=n(74937),i=n(63867),o=n(94289),a=n(97255);class s extends i.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return s.valid(n)?new s(n):i.LN.near(n)}content(){return o.Ji.empty}eq(e){return e instanceof s&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new s(e.resolve(t.pos))}getBookmark(){return new l(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&s.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let a=e.doc.resolve(r);if(s.valid(a))return a}for(;;){let a=t>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=a,r+=t;let l=e.doc.resolve(r);if(s.valid(l))return l}return null}}}s.prototype.visible=!1,s.findFrom=s.findGapCursorFrom,i.LN.jsonID("gapcursor",s);class l{constructor(e){this.pos=e}map(e){return new l(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return s.valid(t)?new s(t):i.LN.near(t)}}function u(){return new i.k_({props:{decorations:f,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&s.valid(n)?new s(n):null,handleClick:d,handleKeyDown:c,handleDOMEvents:{beforeinput:p}}})}let c=(0,r.K)({ArrowLeft:h("horiz",-1),ArrowRight:h("horiz",1),ArrowUp:h("vert",-1),ArrowDown:h("vert",1)});function h(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let a=e.selection,l=t>0?a.$to:a.$from,u=a.empty;if(a instanceof i.U3){if(!o.endOfTextblock(n)||0==l.depth)return!1;u=!1,l=e.doc.resolve(t>0?l.after():l.before())}let c=s.findGapCursorFrom(l,t,u);return!!c&&(r&&r(e.tr.setSelection(new s(c))),!0)}}function d(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!s.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new s(r))),!0)}function p(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof s))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let a=o.FK.empty;for(let e=r.length-1;e>=0;e--)a=o.FK.from(r[e].createAndFill(null,a));let l=e.state.tr.replace(n.pos,n.pos,new o.Ji(a,0,0));return l.setSelection(i.U3.near(l.doc.resolve(n.pos+1))),e.dispatch(l),!1}function f(e){if(!(e.selection instanceof s))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}},16074:(e,t,n)=>{"use strict";function r(e,t,n,i=e=>e){return e*i(.5-t*(.5-n))}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function a(e,t){return[e[0]*t,e[1]*t]}function s(e){return[e[1],-e[0]]}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function u(e,t){var n;return(n=o(e,t))[0]*n[0]+n[1]*n[1]}function c(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function h(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}function d(e,t,n){return i(e,a(o(t,e),n))}n.d(t,{Ay:()=>v,Km:()=>y,U$:()=>g});var{min:p,PI:f}=Math,m=f+1e-4;function g(e,t={}){var n,f;let{size:y=16,smoothing:v=.5,thinning:b=.5,simulatePressure:w=!0,easing:_=e=>e,start:x={},end:k={},last:E=!1}=t,{cap:A=!0,easing:S=e=>e*(2-e)}=x,{cap:T=!0,easing:C=e=>--e*e*e+1}=k;if(0===e.length||y<=0)return[];let P=e[e.length-1].runningLength,O=!1===x.taper?0:!0===x.taper?Math.max(y,P):x.taper,M=!1===k.taper?0:!0===k.taper?Math.max(y,P):k.taper,R=Math.pow(y*v,2),N=[],D=[],I=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(w){let r=p(1,t.distance/y),i=p(1,1-r);n=p(1,e+.275*r*(i-e))}return(e+n)/2},e[0].pressure),L=r(y,b,e[e.length-1].pressure,_),F,j=e[0].vector,B=e[0].point,U=B,H=B,z=U,$=!1;for(let t=0;tl(f,j)&&!$,A=null!==k&&k<0;if(E||A){let e=a(s(j),L);for(let t=1/13,n=0;n<=1;n+=t)H=h(o(c,e),c,m*n),N.push(H),z=h(i(c,e),c,-(m*n)),D.push(z);B=H,U=z,A&&($=!0);continue}if($=!1,t===e.length-1){let e=a(s(f),L);N.push(o(c,e)),D.push(i(c,e));continue}let T=a(s(d(x,f,k)),L);H=o(c,T),(t<=1||u(B,H)>R)&&(N.push(H),B=H),z=i(c,T),(t<=1||u(U,z)>R)&&(D.push(z),U=z),I=n,j=f}let W=e[0].point.slice(0,2),q=e.length>1?e[e.length-1].point.slice(0,2):i(e[0].point,[1,1]),V=[],Y=[];if(1===e.length){if(!(O||M)||E){let e=(n=c(s(o(W,q))),i(W,a(n,-(F||L)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(h(e,W,2*m*r));return t}}else{if(!(O||M&&1===e.length))if(A)for(let e=1/13,t=e;t<=1;t+=e){let e=h(D[0],W,m*t);V.push(e)}else{let e=o(N[0],D[0]),t=a(e,.5),n=a(e,.51);V.push(o(W,t),o(W,n),i(W,n),i(W,t))}let t=s([-(f=e[e.length-1].vector)[0],-f[1]]);if(M||O&&1===e.length)Y.push(q);else if(T){let e=i(q,a(t,L));for(let t=1/29,n=t;n<1;n+=t)Y.push(h(e,q,3*m*n))}else Y.push(i(q,a(t,L)),i(q,a(t,.99*L)),o(q,a(t,.99*L)),o(q,a(t,L)))}return N.concat(Y,D.reverse(),V)}function y(e,t={}){var n,r,a;let{streamline:s=.5,size:l=16,last:u=!1}=t;if(0===e.length)return[];let h=.15+(1-s)*.85,p=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===p.length){let e=p[1];p=p.slice(0,-1);for(let t=1;t<5;t++)p.push(d(p[0],e,t/4))}1===p.length&&(p=[...p,[...i(p[0],[1,1]),...p[0].slice(2)]]);let f=[{point:[p[0][0],p[0][1]],pressure:p[0][2]>=0?p[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],m=!1,g=0,v=f[0],b=p.length-1;for(let e=1;e=0?p[e][2]:.5,vector:c(o(v.point,t)),distance:n,runningLength:g},f.push(v)}return f[0].vector=(null==(n=f[1])?void 0:n.vector)||[0,0],f}var v=function(e,t={}){return g(y(e,t),t)}},16426:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(6029),i=n(19889),o=n(21938),a=n(67909),s=n(45460),l=n(2241);let u=(0,s.R)((e,t)=>{let{className:n,...s}=e,u=(0,o.cx)("chakra-modal__footer",n),c=(0,a.x5)(),h=(0,i.H2)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(l.B.footer,{ref:t,...s,__css:h,className:u})});u.displayName="ModalFooter"},16491:(e,t,n)=>{"use strict";n.d(t,{DY:()=>s,G_:()=>o,mg:()=>a});var r=n(55729);let i=(0,r.createContext)(null);function o({clientId:e,onScriptLoadSuccess:t,onScriptLoadError:n,children:o}){let a=function(e={}){let{onScriptLoadSuccess:t,onScriptLoadError:n}=e,[i,o]=(0,r.useState)(!1),a=(0,r.useRef)(t);a.current=t;let s=(0,r.useRef)(n);return s.current=n,(0,r.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{var e;o(!0),null==(e=a.current)||e.call(a)},e.onerror=()=>{var e;o(!1),null==(e=s.current)||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),i}({onScriptLoadSuccess:t,onScriptLoadError:n}),s=(0,r.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return r.createElement(i.Provider,{value:s},o)}function a({flow:e="implicit",scope:t="",onSuccess:n,onError:o,...a}){let{clientId:s,scriptLoadedSuccessfully:l}=function(){let e=(0,r.useContext)(i);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),u=(0,r.useRef)(),c=(0,r.useRef)(n);c.current=n;let h=(0,r.useRef)(o);h.current=o,(0,r.useEffect)(()=>{var n;if(!l)return;let r="implicit"===e?"initTokenClient":"initCodeClient";u.current=null==(n=window.google)?void 0:n.accounts.oauth2[r]({client_id:s,scope:`openid profile email ${t}`,callback:e=>{var t,n;if(e.error)return null==(t=h.current)?void 0:t.call(h,e);null==(n=c.current)||n.call(c,e)},...a})},[s,l,e,t]);let d=(0,r.useCallback)(e=>u.current.requestAccessToken(e),[]),p=(0,r.useCallback)(()=>u.current.requestCode(),[]);return"implicit"===e?d:p}function s(e,t,...n){return!!window.google&&window.google.accounts.oauth2.hasGrantedAllScopes(e,t,...n)}},16930:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47347),i=n(11116),o=n(41777),a=n(67710);function s(){var e=a.x,t=a.y,n=(0,i.A)(!0),s=null,l=o.A,u=null;function c(i){var o,a,c,h=i.length,d=!1;for(null==s&&(u=l(c=(0,r.A)())),o=0;o<=h;++o)!(o{"use strict";n.d(t,{Ay:()=>s,NG:()=>s});var r=n(37243),i=n(63867);let o=/^```([a-z]+)?[\s\n]$/,a=/^~~~([a-z]+)?[\s\n]$/,s=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options,r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:a}=n;if(!a||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;let s=o.after();return void 0!==s&&(r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(i.LN.near(r.resolve(s))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,r.JJ)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:a,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,a=null==o?void 0:o.mode;if(!n||!a)return!1;let{tr:s,schema:l}=e.state,u=l.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:a},u)),s.selection.$from.parent.type!==this.type&&s.setSelection(i.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}})},17508:(e,t,n)=>{var r=n(6802),i=n(28469);e.exports=function(e,t,n){return n="function"==typeof n?n:void 0,r(e,t,i(t),n)}},17553:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(80545);class i extends Error{constructor(e,t){void 0===t&&(t={}),super(e),this.cause=t.cause,this.cause&&(0,r.A)(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}let o=i},17806:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},17997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{directoryOpen:()=>s,directoryOpenLegacy:()=>_,directoryOpenModern:()=>m,fileOpen:()=>o,fileOpenLegacy:()=>b,fileOpenModern:()=>h,fileSave:()=>u,fileSaveLegacy:()=>k,fileSaveModern:()=>y,supported:()=>r});let r=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top}catch(e){}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),i=r?Promise.resolve().then(function(){return d}):Promise.resolve().then(function(){return w});async function o(...e){return(await i).default(...e)}let a=r?Promise.resolve().then(function(){return g}):Promise.resolve().then(function(){return x});async function s(...e){return(await a).default(...e)}let l=r?Promise.resolve().then(function(){return v}):Promise.resolve().then(function(){return E});async function u(...e){return(await l).default(...e)}let c=async e=>{let t=await e.getFile();return t.handle=e,t};var h=async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach((e,n)=>{t[n]={description:e.description||"Files",accept:{}},e.mimeTypes?e.mimeTypes.map(r=>{t[n].accept[r]=e.extensions||[]}):t[n].accept["*/*"]=e.extensions||[]});let n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(n.map(c));return e[0].multiple?r:r[0]},d={__proto__:null,default:h};function p(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(p=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new p(e)}let f=async(e,t,n=e.name,r)=>{let i=[],o=[];var a,s=!1,l=!1;try{for(var u,c=function(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new p(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(e.values());s=!(u=await c.next()).done;s=!1){let a=u.value,s=`${n}/${a.name}`;"file"===a.kind?o.push(a.getFile().then(t=>(t.directoryHandle=e,t.handle=a,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>s})))):"directory"!==a.kind||!t||r&&r(a)||i.push(f(a,t,s,r))}}catch(e){l=!0,a=e}finally{try{s&&null!=c.return&&await c.return()}finally{if(l)throw a}}return[...(await Promise.all(i)).flat(),...await Promise.all(o)]};var m=async(e={})=>(e.recursive=e.recursive||!1,e.mode=e.mode||"read",f(await window.showDirectoryPicker({id:e.id,startIn:e.startIn,mode:e.mode}),e.recursive,void 0,e.skipDirectory)),g={__proto__:null,default:m},y=async(e,t=[{}],n=null,r=!1,i=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let o=[],a=null;if(e instanceof Blob&&e.type?a=e.type:e.headers&&e.headers.get("content-type")&&(a=e.headers.get("content-type")),t.forEach((e,t)=>{o[t]={description:e.description||"Files",accept:{}},e.mimeTypes?(0===t&&a&&e.mimeTypes.push(a),e.mimeTypes.map(n=>{o[t].accept[n]=e.extensions||[]})):a?o[t].accept[a]=e.extensions||[]:o[t].accept["*/*"]=e.extensions||[]}),n)try{await n.getFile()}catch(e){if(n=null,r)throw e}let s=n||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:o,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!n&&i&&i(s);let l=await s.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(l),s}return"body"in e?await e.body.pipeTo(l):(await l.write(await e),await l.close()),s},v={__proto__:null,default:y},b=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,n)=>{let r=document.createElement("input");r.type="file";let i=[...e.map(e=>e.mimeTypes||[]),...e.map(e=>e.extensions||[])].join();r.multiple=e[0].multiple||!1,r.accept=i||"",r.style.display="none",document.body.append(r);let o=e=>{"function"==typeof a&&a(),t(e)},a=e[0].legacySetup&&e[0].legacySetup(o,()=>a(n),r),s=()=>{window.removeEventListener("focus",s),r.remove()};r.addEventListener("click",()=>{window.addEventListener("focus",s)}),r.addEventListener("change",()=>{window.removeEventListener("focus",s),r.remove(),o(r.multiple?Array.from(r.files):r.files[0])}),r.click()})),w={__proto__:null,default:b},_=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,n)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let i=e=>{"function"==typeof o&&o(),t(e)},o=e[0].legacySetup&&e[0].legacySetup(i,()=>o(n),r);r.addEventListener("change",()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(t=>t.webkitRelativePath.split("/").every(t=>!e[0].skipDirectory({name:t,kind:"directory"})))):t=t.filter(e=>2===e.webkitRelativePath.split("/").length),i(t)}),r.click()})),x={__proto__:null,default:_},k=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);let n=document.createElement("a"),r=e;"body"in e&&(r=await async function(e,t){let n=e.getReader(),r=new Response(new ReadableStream({start:e=>(async function t(){return n.read().then(({done:n,value:r})=>{if(!n)return e.enqueue(r),t();e.close()})})()})),i=await r.blob();return n.releaseLock(),new Blob([i],{type:t})}(e.body,e.headers.get("content-type"))),n.download=t.fileName||"Untitled",n.href=URL.createObjectURL(await r);let i=()=>{"function"==typeof o&&o()},o=t.legacySetup&&t.legacySetup(i,()=>o(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),i()}),n.click(),null},E={__proto__:null,default:k}},18053:(e,t,n)=>{var r=n(49355),i=n(9819),o=n(90199);e.exports=function(e){return i(e)?o(e):r(e)}},18257:(e,t,n)=>{"use strict";n.d(t,{FK:()=>y,Ob:()=>D,XX:()=>R,_3:()=>g,h:()=>f,uA:()=>v,v2:()=>function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n}});var r,i,o,a,s,l,u={},c=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,i,o,null)}function m(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function g(){return{current:null}}function y(e){return e.children}function v(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(v=A[f])||v&&w.key==v.key&&w.type===v.type)A[f]=void 0;else for(g=0;g2&&(s.children=arguments.length>3?r.call(arguments,2):n),m(e.type,s,i||e.key,o||e.ref,null)}r=c.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},v.prototype.render=y,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0},19034:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(55729),i=n(75828),o=n.n(i),a=n(85375),s=n(8610),l=["axisClassName","labelOffset","tickLength","tickLabelProps"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),p="function"==typeof h?h:u({},c,h);return r.createElement(a.A,u({axisClassName:o()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:s.A.bottom,tickLabelProps:p,tickLength:void 0===i?8:i},d))}},19375:e=>{"use strict";let{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:a,seal:s,create:l}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),s||(s=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});let h=A(Array.prototype.forEach),d=A(Array.prototype.lastIndexOf),p=A(Array.prototype.pop),f=A(Array.prototype.push),m=A(Array.prototype.splice),g=A(String.prototype.toLowerCase),y=A(String.prototype.toString),v=A(String.prototype.match),b=A(String.prototype.replace),w=A(String.prototype.indexOf),_=A(String.prototype.trim),x=A(Object.prototype.hasOwnProperty),k=A(RegExp.prototype.test),E=(G=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let o=t.length;for(;o--;){let n=t[o];if("string"==typeof n){let e=i(n);e!==n&&(r(t)||(t[o]=e),n=e)}e[n]=!0}return e}function T(e){let n=l(null);for(let[r,i]of t(e))x(e,r)&&(Array.isArray(i)?n[r]=function(e){for(let t=0;t/gm),z=s(/\$\{[\w\W]*/gm),$=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=s(/^aria-[\-\w]+$/),q=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=s(/^html$/i);var G,K=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:$,DOCTYPE_NAME:X,ERB_EXPR:H,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:U,TMPLIT_EXPR:z});let Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Q=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};e.exports=function e(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.2.6",i.removed=[],!r||!r.document||r.document.nodeType!==Z.document||!r.Element)return i.isSupported=!1,i;let{document:o}=r,s=o,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:A,Node:U,Element:H,NodeFilter:z,NamedNodeMap:$=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:W,DOMParser:V,trustedTypes:Y}=r,G=H.prototype,ee=C(G,"cloneNode"),et=C(G,"remove"),en=C(G,"nextSibling"),er=C(G,"childNodes"),ei=C(G,"parentNode");if("function"==typeof A){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eo="",{implementation:ea,createNodeIterator:es,createDocumentFragment:el,getElementsByTagName:eu}=o,{importNode:ec}=s,eh=Q();i.isSupported="function"==typeof t&&"function"==typeof ei&&ea&&void 0!==ea.createHTMLDocument;let{MUSTACHE_EXPR:ed,ERB_EXPR:ep,TMPLIT_EXPR:ef,DATA_ATTR:em,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:ey,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:eb}=K,{IS_ALLOWED_URI:ew}=K,e_=null,ex=S({},[...P,...O,...M,...N,...I]),ek=null,eE=S({},[...L,...F,...j,...B]),eA=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eS=null,eT=null,eC=!0,eP=!0,eO=!1,eM=!0,eR=!1,eN=!0,eD=!1,eI=!1,eL=!1,eF=!1,ej=!1,eB=!1,eU=!0,eH=!1,ez=!0,e$=!1,eW={},eq=null,eV=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eY=null,eX=S({},["audio","video","img","source","image","track"]),eG=null,eK=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e5=S({},[eZ,eJ,eQ],y),e3=S({},["mi","mo","mn","ms","mtext"]),e4=S({},["annotation-xml"]),e6=S({},["title","style","font","a","script"]),e8=null,e9=["application/xhtml+xml","text/html"],e7=null,te=null,tt=o.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=T(e),e7="application/xhtml+xml"===(e8=-1===e9.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?y:g,e_=x(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,e7):ex,ek=x(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,e7):eE,e2=x(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,y):e5,eG=x(e,"ADD_URI_SAFE_ATTR")?S(T(eK),e.ADD_URI_SAFE_ATTR,e7):eK,eY=x(e,"ADD_DATA_URI_TAGS")?S(T(eX),e.ADD_DATA_URI_TAGS,e7):eX,eq=x(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,e7):eV,eS=x(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,e7):T({}),eT=x(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,e7):T({}),eW=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eP=!1!==e.ALLOW_DATA_ATTR,eO=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eM=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eR=e.SAFE_FOR_TEMPLATES||!1,eN=!1!==e.SAFE_FOR_XML,eD=e.WHOLE_DOCUMENT||!1,eF=e.RETURN_DOM||!1,ej=e.RETURN_DOM_FRAGMENT||!1,eB=e.RETURN_TRUSTED_TYPE||!1,eL=e.FORCE_BODY||!1,eU=!1!==e.SANITIZE_DOM,eH=e.SANITIZE_NAMED_PROPS||!1,ez=!1!==e.KEEP_CONTENT,e$=e.IN_PLACE||!1,ew=e.ALLOWED_URI_REGEXP||q,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e4=e.HTML_INTEGRATION_POINTS||e4,eA=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eA.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eA.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eA.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eR&&(eP=!1),ej&&(eF=!0),eW&&(e_=S({},I),ek=[],!0===eW.html&&(S(e_,P),S(ek,L)),!0===eW.svg&&(S(e_,O),S(ek,F),S(ek,B)),!0===eW.svgFilters&&(S(e_,M),S(ek,F),S(ek,B)),!0===eW.mathMl&&(S(e_,N),S(ek,j),S(ek,B))),e.ADD_TAGS&&(e_===ex&&(e_=T(e_)),S(e_,e.ADD_TAGS,e7)),e.ADD_ATTR&&(ek===eE&&(ek=T(ek)),S(ek,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&S(eG,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eq===eV&&(eq=T(eq)),S(eq,e.FORBID_CONTENTS,e7)),ez&&(e_["#text"]=!0),eD&&S(e_,["html","head","body"]),e_.table&&(S(e_,["tbody"]),delete eS.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');eo=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=J(Y,u)),null!==n&&"string"==typeof eo&&(eo=n.createHTML(""));a&&a(e),te=e}},ti=S({},[...O,...M,...R]),to=S({},[...N,...D]),ta=function(e){let t=ei(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=g(e.tagName),r=g(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===r||e3[r]):!!ti[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e4[r]:!!to[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e4[r])&&(t.namespaceURI!==eZ||!!e3[r])&&!to[n]&&(e6[n]||!ti[n]):"application/xhtml+xml"===e8&&!!e2[e.namespaceURI])},ts=function(e){f(i.removed,{element:e});try{ei(e).removeChild(e)}catch(t){et(e)}},tl=function(e,t){try{f(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eF||ej)try{ts(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let t=null,r=null;if(eL)e=""+e;else{let t=v(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===e8&&e0===eQ&&(e=''+e+"");let i=n?n.createHTML(e):e;if(e0===eQ)try{t=new V().parseFromString(i,e8)}catch(e){}if(!t||!t.documentElement){t=ea.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?eo:i}catch(e){}}let a=t.body||t.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),e0===eQ)?eu.call(t,eD?"html":"body")[0]:eD?t.documentElement:a},tc=function(e){return es.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},th=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof $)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},td=function(e){return"function"==typeof U&&e instanceof U};function tp(e,t,n){h(e,e=>{e.call(i,t,n,te)})}let tf=function(e){let t=null;if(tp(eh.beforeSanitizeElements,e,null),th(e))return ts(e),!0;let n=e7(e.nodeName);if(tp(eh.uponSanitizeElement,e,{tagName:n,allowedTags:e_}),eN&&e.hasChildNodes()&&!td(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent)||e.nodeType===Z.progressingInstruction||eN&&e.nodeType===Z.comment&&k(/<[/\w]/g,e.data))return ts(e),!0;if(!e_[n]||eS[n]){if(!eS[n]&&tg(n)&&(eA.tagNameCheck instanceof RegExp&&k(eA.tagNameCheck,n)||eA.tagNameCheck instanceof Function&&eA.tagNameCheck(n)))return!1;if(ez&&!eq[n]){let t=ei(e)||e.parentNode,n=er(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ee(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,en(e))}}}return ts(e),!0}return e instanceof H&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&k(/<\/no(script|embed|frames)/i,e.innerHTML)?(ts(e),!0):(eR&&e.nodeType===Z.text&&(t=e.textContent,h([ed,ep,ef],e=>{t=b(t,e," ")}),e.textContent!==t&&(f(i.removed,{element:e.cloneNode()}),e.textContent=t)),tp(eh.afterSanitizeElements,e,null),!1)},tm=function(e,t,n){if(eU&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;if(eP&&!eT[t]&&k(em,t));else if(eC&&k(eg,t));else if(!ek[t]||eT[t]){if(!(tg(e)&&(eA.tagNameCheck instanceof RegExp&&k(eA.tagNameCheck,e)||eA.tagNameCheck instanceof Function&&eA.tagNameCheck(e))&&(eA.attributeNameCheck instanceof RegExp&&k(eA.attributeNameCheck,t)||eA.attributeNameCheck instanceof Function&&eA.attributeNameCheck(t))||"is"===t&&eA.allowCustomizedBuiltInElements&&(eA.tagNameCheck instanceof RegExp&&k(eA.tagNameCheck,n)||eA.tagNameCheck instanceof Function&&eA.tagNameCheck(n))))return!1}else if(eG[t]);else if(k(ew,b(n,ev,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===w(n,"data:")&&eY[e]);else if(eO&&!k(ey,b(n,ev,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&v(e,eb)},ty=function(e){tp(eh.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||th(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ek,forceKeepAttr:void 0},o=t.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=t[o],u=e7(a),c="value"===a?l:_(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,tp(eh.uponSanitizeAttribute,e,r),c=r.attrValue,eH&&("id"===u||"name"===u)&&(tl(a,e),c="user-content-"+c),eN&&k(/((--!?|])>)|<\/(style|title)/i,c)){tl(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr||!eM&&k(/\/>/i,c)){tl(a,e);continue}eR&&h([ed,ep,ef],e=>{c=b(c,e," ")});let d=e7(e.nodeName);if(!tm(d,u,c)){tl(a,e);continue}if(n&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(s);else switch(Y.getAttributeType(d,u)){case"TrustedHTML":c=n.createHTML(c);break;case"TrustedScriptURL":c=n.createScriptURL(c)}if(c!==l)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),th(e)?ts(e):p(i.removed)}catch(t){tl(a,e)}}tp(eh.afterSanitizeAttributes,e,null)},tv=function e(t){let n=null,r=tc(t);for(tp(eh.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)tp(eh.uponSanitizeShadowNode,n,null),tf(n),ty(n),n.content instanceof c&&e(n.content);tp(eh.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!td(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}else throw E("toString is not a function");if(!i.isSupported)return e;if(eI||tr(t),i.removed=[],"string"==typeof e&&(e$=!1),e$){if(e.nodeName){let t=e7(e.nodeName);if(!e_[t]||eS[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof U)(o=(r=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Z.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!eF&&!eR&&!eD&&-1===e.indexOf("<"))return n&&eB?n.createHTML(e):e;if(!(r=tu(e)))return eF?null:eB?eo:""}r&&eL&&ts(r.firstChild);let u=tc(e$?e:r);for(;a=u.nextNode();)tf(a),ty(a),a.content instanceof c&&tv(a.content);if(e$)return e;if(eF){if(ej)for(l=el.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ek.shadowroot||ek.shadowrootmode)&&(l=ec.call(s,l,!0)),l}let d=eD?r.outerHTML:r.innerHTML;return eD&&e_["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(X,r.ownerDocument.doctype.name)&&(d="\n"+d),eR&&h([ed,ep,ef],e=>{d=b(d,e," ")}),n&&eB?n.createHTML(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr(e),eI=!0},i.clearConfig=function(){te=null,eI=!1},i.isValidAttribute=function(e,t,n){return te||tr({}),tm(e7(e),e7(t),n)},i.addHook=function(e,t){"function"==typeof t&&f(eh[e],t)},i.removeHook=function(e,t){if(void 0!==t){let n=d(eh[e],t);return -1===n?void 0:m(eh[e],n,1)[0]}return p(eh[e])},i.removeHooks=function(e){eh[e]=[]},i.removeAllHooks=function(){eh=Q()},i}()},19508:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},19962:(e,t,n)=>{var r=n(50515);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i{"use strict";n.d(t,{T:()=>u});var r=n(6029),i=n(21938),o=n(49146),a=n(61400),s=n(45460),l=n(2241);let u=(0,s.R)(function(e,t){let n=(0,a.uo)(e),s=(0,o.e)();return(0,r.jsx)(l.B.div,{...n,width:"100%",ref:t,className:(0,i.cx)("chakra-tabs__tab-panels",e.className),__css:s.tabpanels})});u.displayName="TabPanels"},20578:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>r})},21033:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(56121),i=n.n(r),o=n(55729),a=n(12364),s=n.n(a);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var m={width:"100%",height:"100%"};function g(e){var t,n,r,i,a,g,y,v,b,w,_,x,k,E,A,S,T=e.className,C=e.children,P=e.debounceTime,O=e.ignoreDimensions,M=e.initialSize,R=e.parentSizeStyles,N=e.enableDebounceLeadingCall,D=e.resizeObserverPolyfill,I=f(e,h),L=(r=void 0===(n=(t={initialSize:M,debounceTime:P,ignoreDimensions:O,enableDebounceLeadingCall:void 0===N||N,resizeObserverPolyfill:D}).initialSize)?c:n,a=void 0===(i=t.debounceTime)?300:i,y=void 0===(g=t.ignoreDimensions)?u:g,b=void 0===(v=t.enableDebounceLeadingCall)||v,w=t.resizeObserverPolyfill,_=(0,o.useRef)(null),x=(0,o.useRef)(0),E=(k=(0,o.useState)(l({},c,r)))[0],A=k[1],S=(0,o.useMemo)(function(){var e=Array.isArray(y)?y:[y];return s()(function(t){A(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},a,{leading:b})},[a,b,y]),(0,o.useEffect)(function(){var e=new(w||window.ResizeObserver)(function(e){e.forEach(function(e){var t,n=null!=(t=null==e?void 0:e.contentRect)?t:{},r=n.left,i=n.top,o=n.width,a=n.height;x.current=window.requestAnimationFrame(function(){S({width:o,height:a,top:i,left:r})})})});return _.current&&e.observe(_.current),function(){window.cancelAnimationFrame(x.current),e.disconnect(),S.cancel()}},[S,w]),l({parentRef:_,resize:S},E)),F=L.parentRef,j=L.resize,B=f(L,d);return o.createElement("div",p({style:void 0===R?m:R,ref:F,className:T},I),C(p({},B,{ref:F.current,resize:j})))}g.propTypes={className:i().string,children:i().func.isRequired}},21157:(e,t,n)=>{var r=n(60567),i=n(6797);e.exports=function(e){return i(r(e).toLowerCase())}},21315:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var r=n(39099);function i(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var o=n(11027);let a=function e(t){var n=(0,o.uN)(t);function i(e,t){var i=n((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),a=n(e.g,t.g),s=n(e.b,t.b),l=(0,o.Ay)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=s(t),e.opacity=l(t),e+""}}return i.gamma=e,i}(1);function s(e){return function(t){var n,i,o=t.length,a=Array(o),s=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],s=r>0?e[r-1]:2*o-a,l=r{"use strict";function r(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{A:()=>r})},22265:(e,t,n)=>{var r=n(95814);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,i,o,a=[],s=[{value:"(",type:4,pre:0}],l=this.value,u=1;un)s.push(e);else{for(;n>=i&&!c||c&&i{var r=n(17806),i=n(48877),o=n(11061),a=parseFloat,s=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var u=e;e=t,t=u}if(n||e%1||t%1){var c=l();return s(e+c*(t-e+a("1e-"+((c+"").length-1))),t)}return r(e,t)}},22853:(e,t,n)=>{"use strict";var r=n(5210),i=n(74373),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function h(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t,r,i=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||i);if("blob:"===e.protocol)o=new y(unescape(e.pathname),{});else if("string"===a)for(r in o=new y(e,{}),p)delete o[r];else if("object"===a){for(r in e)r in p||(o[r]=e[r]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=h(e)).replace(a,""),t=t||{};var n,r=u.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],l=0;return o?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:n}}function y(e,t,n){if(e=(e=h(e)).replace(a,""),!(this instanceof y))return new y(e,t,n);var o,s,l,u,p,v,b=d.slice(),w=typeof t,_=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),o=!(s=g(e||"",t=f(t))).protocol&&!s.slashes,this.slashes=s.slashes||o&&t.slashes,this.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);_{"use strict";n.d(t,{A:()=>o});var r=n(34889),i=n(62123);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()-o.getTime()}},23275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(55729),i=n(75828),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),B=(n=(t={x:E,y:A,width:S,height:T,radius:C,all:void 0!==P&&P,top:void 0!==O&&O,bottom:void 0!==M&&M,left:void 0!==R&&R,right:void 0!==N&&N,topLeft:void 0!==D&&D,topRight:void 0!==I&&I,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,h=t.left,d=t.radius,p=t.right,f=t.top,m=t.topLeft,g=t.topRight,y=t.width,v=t.x,b=t.y,g=n||f||p||g,u=n||i||p||u,l=n||i||h||l,m=n||f||h||m,w=2*(d=Math.max(1,Math.min(d,Math.min(y,c)/2))),("M"+(v+d)+","+b+" h"+(y-w)+"\n "+(g?"a"+d+","+d+" 0 0 1 "+d+","+d:"h"+d+"v"+d)+"\n v"+(c-w)+"\n "+(u?"a"+d+","+d+" 0 0 1 "+-d+","+d:"v"+d+"h"+-d)+"\n h"+(w-y)+"\n "+(l?"a"+d+","+d+" 0 0 1 "+-d+","+-d:"h"+-d+"v"+-d)+"\n v"+(w-c)+"\n "+(m?"a"+d+","+d+" 0 0 1 "+d+","+-d:"v"+-d+"h"+d)+"\nz").split("\n").join(""));return _?r.createElement(r.Fragment,null,_({path:B})):r.createElement("path",s({ref:k,className:o()("visx-bar-rounded",x),d:B},j))}},23439:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47010),i=n(62123);function o(e){return(0,i.A)(1,arguments),(0,r.A)(e,Date.now())}},23908:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(6029),i=n(19889),o=n(21938),a=n(49146),s=n(61400),l=n(45460),u=n(2241);let c=(0,l.R)(function(e,t){let n=(0,s.$c)({...e,ref:t}),l=(0,a.e)(),c=(0,i.H2)({display:"flex",...l.tablist});return(0,r.jsx)(u.B.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:c})});c.displayName="TabList"},24170:(e,t,n)=>{e.exports=n(46622)},25211:(e,t,n)=>{"use strict";t.__esModule=!0,t.STACK_ORDER_NAMES=t.STACK_ORDERS=void 0,t.default=function(e){return e&&i[e]||i.none};var r=n(96710),i={ascending:r.stackOrderAscending,descending:r.stackOrderDescending,insideout:r.stackOrderInsideOut,none:r.stackOrderNone,reverse:r.stackOrderReverse};t.STACK_ORDERS=i,t.STACK_ORDER_NAMES=Object.keys(i)},25256:(e,t,n)=>{var r=n(66678),i=n(98888),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},25650:(e,t,n)=>{var r=n(97722),i=n(86891);e.exports=function(e){return i(r(e))}},25725:(e,t,n)=>{var r=n(81648),i=n(78492),o=n(68988),a=n(91544);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,u=t?t():{};return l(n,e,o(s,2),u)}}},25927:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(55729),i=["tooltipOpen"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,i);return o({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[a]),l=(0,r.useCallback)(function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[a]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:a,showTooltip:s,hideTooltip:l}}},26387:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{"use strict";n.d(t,{u:()=>u});var r=n(6029),i=n(5858),o=n(21938),a=n(45460),s=n(8527),l=n(2241);let u=(0,a.R)(function(e,t){let n=(0,s.V)("Kbd",e),{className:a,...u}=(0,i.M)(e);return(0,r.jsx)(l.B.kbd,{ref:t,className:(0,o.cx)("chakra-kbd",a),...u,__css:{fontFamily:"mono",...n}})});u.displayName="Kbd"},26658:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(55729),i=n(75828),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},27295:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},i=n(39779),o={date:(0,i.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:function(e,t,n){var r=e.getUTCDay();return"'"+(0===r||6===r?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},s=n(21725),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"week"===r||"isoWeek"===r?n+"\xaa":n+"\xba"},era:(0,s.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},u=n(4285);let c={code:"pt-BR",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return"em "+i;else return"h\xe1 "+i;return i},formatLong:o,formatRelative:function(e,t,n,r){var i=a[e];return"function"==typeof i?i(t,n,r):i},localize:l,match:{ordinalNumber:(0,n(3583).A)({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,u.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},27307:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58905);class i extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function o({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function a(e){return null!==e&&"object"==typeof e?e.valueOf():e}let s=Symbol("implicit");var l=(0,n(65231).A)("domain","range","reverse","align","padding","round");function u(e){return l(function e(){var t,n,o=(function e(){var t=new i,n=[],o=[],a=s;function l(e){let r=t.get(e);if(void 0===r){if(a!==s)return a;t.set(e,r=n.push(e)-1)}return o[r%o.length]}return l.domain=function(e){if(!arguments.length)return n.slice();for(let r of(n=[],t=new i,e))t.has(r)||t.set(r,n.push(r)-1);return l},l.range=function(e){return arguments.length?(o=Array.from(e),l):o.slice()},l.unknown=function(e){return arguments.length?(a=e,l):a},l.copy=function(){return e(n,o).unknown(a)},r.C.apply(l,arguments),l})().unknown(void 0),a=o.domain,l=o.range,u=0,c=1,h=!1,d=0,p=0,f=.5;function m(){var e=a().length,r=c{"use strict";n.d(t,{fj:()=>o,wD:()=>i}),e=n.hmd(e);var r=n(29143);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}},28548:(e,t,n)=>{"use strict";n.d(t,{B:()=>k});var r=n(37243),i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new a(this,e)},i.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new o(e):i.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new o([]);var a=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return ei&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),s=n(62040),l=n(63867);class u{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(r=(n=this.remapping(a,this.items.length)).maps.length);let s=e.tr,l=[],h=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(a,t+1)).maps.length),r--,h.push(e);return}if(n){h.push(new c(e.map));let t=e.step.map(n.slice(r)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],l.push(new c(i,void 0,void 0,l.length+h.length))),r--,i&&n.appendMap(i,r)}else s.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new u(this.items.slice(0,a).append(h.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:s,selection:i}}addTransform(e,t,n,r){var i,o;let a,s=[],l=this.eventCount,h=this.items,p=!r&&h.length?h.get(h.length-1):null;for(let n=0;nd&&(i=h,o=f,i.forEach((e,t)=>{if(e.selection&&0==o--)return a=t,!1}),h=i.slice(a),l-=f),new u(h.append(s),l)}remapping(e,t){let n=new s.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new u(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let s=t;this.items.forEach(t=>{let r=i.getMirror(--s);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(s+1,r));u&&a++,n.push(new c(l,o,u))}else n.push(new c(l))},r);let l=[];for(let e=t;e500&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l=new c(a.invert(),e,s),u,h=r.length-1;(u=r.length&&r[h].merge(l))?r[h]=u:r.push(l)}}else i.map&&n--},this.items.length,0),new u(i.from(r.reverse()),o)}}u.empty=new u(i.empty,0);class c{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class h{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let d=20;function p(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function f(e,t){if(!e)return null;let n=[];for(let r=0;r{let i=v.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=y(t),i=v.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new h(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(v,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let _=w(!1,!0),x=w(!0,!0);w(!1,!1),w(!0,!1);let k=r.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>_(e,t),redo:()=>({state:e,dispatch:t})=>x(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new l.k_({key:v,state:{init:()=>new h(u.empty,u.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(v),o;if(i)return i.historyState;n.getMeta(b)&&(e=new h(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(v))if(a.getMeta(v).redo)return new h(e.done.addTransform(n,void 0,r,y(t)),e.undone,p(n.mapping.maps),e.prevTime,e.prevComposition);else return new h(e.done,e.undone.addTransform(n,void 0,r,y(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new h(e.done.rebased(n,o),e.undone.rebased(n,o),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new h(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i=t[i]&&(n=!0)}),n}(n,e.prevRanges)),s=a?f(e.prevRanges,n.mapping):p(n.mapping.maps);return new h(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,y(t)),u.empty,s,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?_:"historyRedo"==n?x:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},28816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e},29008:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,fX:()=>a});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";var r=n(51642).Buffer;let i=void 0!==r,o=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function s(e,t,n){null==n&&null!==t&&"object"==typeof t&&(n=t,t=void 0),i&&r.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let s=JSON.parse(e,t);if(null===s||"object"!=typeof s)return s;let u=n&&n.protoAction||"error",c=n&&n.constructorAction||"error";if("ignore"===u&&"ignore"===c)return s;if("ignore"!==u&&"ignore"!==c){if(!1===o.test(e)&&!1===a.test(e))return s}else if("ignore"!==u&&"ignore"===c){if(!1===o.test(e))return s}else if(!1===a.test(e))return s;return l(s,{protoAction:u,constructorAction:c,safe:n&&n.safe})}function l(e,{protoAction:t="error",constructorAction:n="error",safe:r}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if(!0===r)return null;if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==n&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if(!0===r)return null;if("error"===n)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(t)}}}return e}function u(e,t,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,n)}finally{Error.stackTraceLimit=r}}e.exports=u,e.exports.default=u,e.exports.parse=u,e.exports.safeParse=function(e,t){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,{safe:!0})}catch(e){return null}finally{Error.stackTraceLimit=n}},e.exports.scan=l},29545:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(94182),i=n(55729);let{useSyncExternalStoreWithSelector:o}=n(7203),a=e=>{let t="function"==typeof e?(0,r.A)(e):e,n=(e,n)=>(function(e,t=e.getState,n){let r=o(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(r),r})(t,e,n);return Object.assign(n,t),n};var s=e=>e?a(e):a},29594:(e,t,n)=>{var r=n(84536);e.exports=n(15565)(function(e,t){return null==e?{}:r(e,t)})},29768:(e,t,n)=>{"use strict";n.d(t,{Tr:()=>s});var r=n(6029),i=n(41960),o=n(45460),a=n(2241);let s=(0,o.R)((e,t)=>{let n=(0,i.k)();return(0,r.jsx)(a.B.tr,{...e,ref:t,__css:n.tr})})},30227:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(59153),i=n(509),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr-o?(l[1]>s.top||rl[1])&&(u[1]=1),s.left>n-o?(l[0]>s.left||nl[0])&&(u[0]=1),clearTimeout(this._timer),(!!u[0]||!!u[1])&&this._continueDrag(a(a({},t),{direction:u,inputEvent:e,isDrag:!0}))},r.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,i=e.direction,o=e.throttleTime,a=void 0===o?0:o,s=e.inputEvent,l=e.isDrag,u=this._getScrollPosition(i||[0,0],e),c=u[0]-r[0],h=u[1]-r[1],d=i||[c?Math.abs(c)/c:0,h?Math.abs(h)/h:0];return this._prevScrollPos=u,(!!c||!!h)&&(this.trigger("move",{offsetX:d[0]?c:0,offsetY:d[1]?h:0,inputEvent:s}),a&&l&&(this._timer=window.setTimeout(function(){t._continueDrag(e)},a)),!0)},r.dragEnd=function(){clearTimeout(this._timer)},r._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?function(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}:r)({container:n,direction:e})},r._continueDrag=function(e){var t=this,n=e.container,r=e.direction,o=e.throttleTime,s=e.useScroll,l=e.isDrag,u=e.inputEvent;if(!l||!this._isWait){var c=(0,i.tB)(),h=Math.max(o+this._prevTime-c,0);if(h>0)return this._timer=window.setTimeout(function(){t._continueDrag(e)},h),!1;this._prevTime=c;var d=this._getScrollPosition(r,e);return this._prevScrollPos=d,l&&(this._isWait=!0),this.trigger("scroll",{container:n,direction:r,inputEvent:u}),this._isWait=!1,s||this.checkScroll(a(a({},e),{prevScrollPos:d,direction:r,inputEvent:u}))}},n}(r.A)},30361:(e,t,n)=>{var r=n(96863),i=n(83139),o=n(91544);e.exports=function(e){return(o(e)?r:i)(e)}},30362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return a}});let r=n(14761);n(6029),n(55729);let i=r._(n(82077));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30477:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(6029),i=n(55729),o=n(42732),a=n(45460);function s(e){let{viewBox:t="0 0 24 24",d:n,displayName:s,defaultProps:l={}}=e,u=i.Children.toArray(e.path),c=(0,a.R)((e,i)=>(0,r.jsx)(o.I,{ref:i,viewBox:t,...l,...e,children:u.length?u:(0,r.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=s,c}},30709:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var r=n(6029),i=n(21938),o=n(46980),a=n(785),s=n(45460),l=n(2241);let u=(0,s.R)(function(e,t){let{getPreviewProps:n}=(0,o.nE)(),s=(0,o.Gn)(),u=n(e,t),c=(0,i.cx)("chakra-editable__preview",e.className);return(0,r.jsx)(l.B.span,{...u,__css:{cursor:"text",display:"inline-block",...a.s,...s.preview},className:c})});u.displayName="EditablePreview"},30928:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(6029),i=n(21938),o=n(88990),a=n(666),s=n(42732);function l(e){let{isOpen:t,isDisabled:n}=(0,o.AV)(),{reduceMotion:l}=(0,a.Dr)(),u=(0,i.cx)("chakra-accordion__icon",e.className),c={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:l?void 0:"transform 0.2s",transformOrigin:"center",...(0,o.EF)().icon};return(0,r.jsx)(s.I,{viewBox:"0 0 24 24","aria-hidden":!0,className:u,__css:c,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}l.displayName="AccordionIcon"},31026:(e,t,n)=>{"use strict";var r=n(32938),i=n(68659),o=n(64600),a=n(7815),s=n(3913);function l(e){if(!(this instanceof l))return new l(e);var t=r(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}l.from=function(e){if("string"==typeof e)return new l(e);if(e instanceof l){var t=new l("");return t.err=e.err,t.segments=e.segments.map(function(e){return e.slice()}),t.__stack=e.__stack.map(function(e){return o().matrix(e.toArray())}),t}throw Error("SvgPath.from: invalid param type "+e)},l.prototype.__matrix=function(e){var t,n=this;e.queue.length&&this.iterate(function(r,i,o,a){var l,u,c,h;switch(r[0]){case"v":u=0===(l=e.calc(0,r[1],!0))[0]?["v",l[1]]:["l",l[0],l[1]];break;case"V":u=(l=e.calc(o,r[1],!1))[0]===e.calc(o,a,!1)[0]?["V",l[1]]:["L",l[0],l[1]];break;case"h":u=0===(l=e.calc(r[1],0,!0))[1]?["h",l[0]]:["l",l[0],l[1]];break;case"H":u=(l=e.calc(r[1],a,!1))[1]===e.calc(o,a,!1)[1]?["H",l[0]]:["L",l[0],l[1]];break;case"a":case"A":var d=e.toArray(),p=s(r[1],r[2],r[3]).transform(d);if(d[0]*d[3]-d[1]*d[2]<0&&(r[5]=r[5]?"0":"1"),l=e.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===o&&r[7]===a||"a"===r[0]&&0===r[6]&&0===r[7]){u=["a"===r[0]?"l":"L",l[0],l[1]];break}u=p.isDegenerate()?["a"===r[0]?"l":"L",l[0],l[1]]:[r[0],p.rx,p.ry,p.ax,r[4],r[5],l[0],l[1]];break;case"m":h=i>0,u=["m",(l=e.calc(r[1],r[2],h))[0],l[1]];break;default:for(t=1,u=[c=r[0]],h=c.toLowerCase()===c;t=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},l.prototype.toString=function(){var e="",t="",n=!1;this.__evaluateStack();for(var r=0,i=this.segments.length;r=0&&(e+=" "):l>=0&&(e+=" "),e+=l}t=a}return e},l.prototype.translate=function(e,t){return this.__stack.push(o().translate(e,t||0)),this},l.prototype.scale=function(e,t){return this.__stack.push(o().scale(e,t||0===t?t:e)),this},l.prototype.rotate=function(e,t,n){return this.__stack.push(o().rotate(e,t||0,n||0)),this},l.prototype.skewX=function(e){return this.__stack.push(o().skewX(e)),this},l.prototype.skewY=function(e){return this.__stack.push(o().skewY(e)),this},l.prototype.matrix=function(e){return this.__stack.push(o().matrix(e)),this},l.prototype.transform=function(e){return e.trim()&&this.__stack.push(i(e)),this},l.prototype.round=function(e){var t,n=0,r=0,i=0,o=0;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(a){var s=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":s&&(a[1]+=i),i=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"V":case"v":s&&(a[1]+=o),o=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"Z":case"z":i=n,o=r;return;case"M":case"m":s&&(a[1]+=i,a[2]+=o),i=a[1]-a[1].toFixed(e),o=a[2]-a[2].toFixed(e),n=i,r=o,a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e);return;case"A":case"a":s&&(a[6]+=i,a[7]+=o),i=a[6]-a[6].toFixed(e),o=a[7]-a[7].toFixed(e),a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e),a[3]=+a[3].toFixed(e+2),a[6]=+a[6].toFixed(e),a[7]=+a[7].toFixed(e);return;default:t=a.length,s&&(a[t-2]+=i,a[t-1]+=o),i=a[t-2]-a[t-2].toFixed(e),o=a[t-1]-a[t-1].toFixed(e),a.forEach(function(t,n){n&&(a[n]=+a[n].toFixed(e))});return}}),this},l.prototype.iterate=function(e,t){var n,r,i,o=this.segments,a={},s=!1,l=0,u=0,c=0,h=0;if(t||this.__evaluateStack(),o.forEach(function(t,n){var r=e(t,n,l,u);Array.isArray(r)&&(a[n]=r,s=!0);var i=t[0]===t[0].toLowerCase();switch(t[0]){case"m":case"M":l=t[1]+(i?l:0),u=t[2]+(i?u:0),c=l,h=u;return;case"h":case"H":l=t[1]+(i?l:0);return;case"v":case"V":u=t[1]+(i?u:0);return;case"z":case"Z":l=c,u=h;return;default:l=t[t.length-2]+(i?l:0),u=t[t.length-1]+(i?u:0)}}),!s)return this;for(n=0,i=[];n{"use strict";n.d(t,{B8:()=>p,Xy:()=>f,ck:()=>m});var r=n(6029),i=n(5858),o=n(54578),a=n(97646),s=n(42732),l=n(45460),u=n(8527),c=n(2241);let[h,d]=(0,o.q)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,l.R)(function(e,t){let n=(0,u.o)("List",e),{children:o,styleType:s="none",stylePosition:l,spacing:d,...p}=(0,i.M)(e),f=(0,a.a)(o);return(0,r.jsx)(h,{value:n,children:(0,r.jsx)(c.B.ul,{ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:{...n.container,...d?{"& > *:not(style) ~ *:not(style)":{mt:d}}:{}},...p,children:f})})});p.displayName="List",(0,l.R)((e,t)=>{let{as:n,...i}=e;return(0,r.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList";let f=(0,l.R)(function(e,t){let{as:n,...i}=e;return(0,r.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})});f.displayName="UnorderedList";let m=(0,l.R)(function(e,t){let n=d();return(0,r.jsx)(c.B.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,l.R)(function(e,t){let n=d();return(0,r.jsx)(s.I,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},31269:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;na,KR:()=>o,RI:()=>s,SS:()=>i,T6:()=>r})},31617:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,U:()=>d});var r=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,i=n.indexOf(e),o=-1===i?n.length:i;n[o]=e,r[o]=t},e}(),i=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),o="function"==typeof Map,a=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}(),s=function(){function e(e,t,n,r,i,o,a,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=i,this.maintained=o,this.changedBeforeAdded=a,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e,t,n,r,i=(e=this.changedBeforeAdded,t=this.fixed,n=[],r=[],e.forEach(function(e){var t=e[0],i=e[1],o=new a;n[t]=o,r[i]=o}),n.forEach(function(e,t){e.connect(n[t-1])}),e.filter(function(e,n){return!t[n]}).map(function(e,t){var i=e[0],o=e[1];if(i===o)return[0,0];var a=n[i],s=r[o-1],l=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[l,a.getIndex()]})),o=this.changed,s=[];this.cacheOrdered=i.filter(function(e,t){var n=e[0],r=e[1],i=o[t],a=i[0],l=i[1];if(n!==r)return s.push([a,l]),!0}),this.cachePureChanged=s},e}();function l(e,t,n){var a=o?Map:n?i:r,l=n||function(e){return e},u=[],c=[],h=[],d=e.map(l),p=t.map(l),f=new a,m=new a,g=[],y=[],v={},b=[],w=0,_=0;return d.forEach(function(e,t){f.set(e,t)}),p.forEach(function(e,t){m.set(e,t)}),d.forEach(function(e,t){var n=m.get(e);void 0===n?(++_,c.push(t)):v[n]=_}),p.forEach(function(e,t){var n=f.get(e);void 0===n?(u.push(t),++w):(h.push([n,t]),_=v[t]||0,g.push([n-_,t-w]),y.push(t===n),n!==t&&b.push([n,t]))}),c.reverse(),new s(e,t,u,c,b,h,g,y)}var u=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),n=l(this.list,t,this.findKeyCallback);return this.list=t,n},e}(),c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},h="function"==typeof Map?void 0:function(){var e=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}}();function d(e,t){return l(e,t,h)}let p=function(e){function t(){this.constructor=n}function n(t){return void 0===t&&(t=[]),e.call(this,t,h)||this}return c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n}(u)},31808:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(93344);function i(){return fetch(...arguments).catch(e=>{if("AbortError"===e.name)throw e;throw new r.A(e)})}},31831:(e,t,n)=>{"use strict";let r;function i(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function o(){return r||(r=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=i(n);return(e,n)=>r.then(r=>n(r.transaction(t,e).objectStore(t)))}("keyval-store","keyval")),r}function a(e,t=o()){return t("readonly",t=>i(t.get(e)))}function s(e,t,n=o()){return n("readwrite",n=>(n.put(t,e),i(n.transaction)))}n.d(t,{Jt:()=>a,hZ:()=>s})},32380:(e,t,n)=>{"use strict";n.d(t,{tN:()=>i});var r=n(60122);let i=e=>{let t=r.Mj.getState(e).undoManager;if(null!=t)return t.undo(),!0}},32705:(e,t,n)=>{"use strict";n.d(t,{k:()=>m});var r=n(6029),i=n(5858),o=n(54578),a=n(83004);(0,a.i7)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),(0,a.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});let s=(0,a.i7)({"0%":{left:"-40%"},"100%":{left:"100%"}}),l=(0,a.i7)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});var u=n(45460),c=n(2241),h=n(8527);let[d,p]=(0,o.q)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,u.R)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:a,role:s,...l}=e,u=function(e){let{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:s="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:s},percent:l,value:t}}({value:o,min:n,max:i,isIndeterminate:a,role:s}),h={height:"100%",...p().filledTrack};return(0,r.jsx)(c.B.div,{ref:t,style:{width:`${u.percent}%`,...l.style},...u.bind,...l,__css:h})}),m=(0,u.R)((e,t)=>{let{value:n,min:o=0,max:a=100,hasStripe:u,isAnimated:p,children:m,borderRadius:g,isIndeterminate:y,"aria-label":v,"aria-labelledby":b,"aria-valuetext":w,title:_,role:x,...k}=(0,i.M)(e),E=(0,h.o)("Progress",e),A=g??E.track?.borderRadius,S={animation:`${l} 1s linear infinite`},T={...!y&&u&&p&&S,...y&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${s} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...E.track};return(0,r.jsx)(c.B.div,{ref:t,borderRadius:A,__css:C,...k,children:(0,r.jsxs)(d,{value:E,children:[(0,r.jsx)(f,{"aria-label":v,"aria-labelledby":b,"aria-valuetext":w,min:o,max:a,value:n,isIndeterminate:y,css:T,borderRadius:A,title:_,role:x}),m]})})});m.displayName="Progress"},32844:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(6029),i=n(5858),o=n(21938),a=n(55729),s=n(88990),l=n(666),u=n(45460),c=n(8527),h=n(2241);let d=(0,u.R)(function({children:e,reduceMotion:t,...n},u){let d=(0,c.o)("Accordion",n),p=(0,i.M)(n),{htmlProps:f,descendants:m,...g}=(0,l.O3)(p),y=(0,a.useMemo)(()=>({...g,reduceMotion:!!t}),[g,t]);return(0,r.jsx)(s.C3,{value:m,children:(0,r.jsx)(l.If,{value:y,children:(0,r.jsx)(s.gm,{value:d,children:(0,r.jsx)(h.B.div,{ref:u,...f,className:(0,o.cx)("chakra-accordion",n.className),__css:d.root,children:e})})})})});d.displayName="Accordion"},32938:e=>{"use strict";var t={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function r(e){return e>=48&&e<=57}function i(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function o(e){for(var t;e.index=5760&&n.indexOf(t)>=0);)e.index++}function a(e){var n,r=(n=e.path[e.segmentStart]).toLowerCase(),i=e.data;if("m"===r&&i.length>2&&(e.result.push([n,i[0],i[1]]),i=i.slice(2),r="l",n="m"===n?"l":"L"),"r"===r)e.result.push([n].concat(i));else for(;i.length>=t[r]&&(e.result.push([n].concat(i.splice(0,t[r]))),t[r]););}e.exports=function(e){var n=new i(e),s=n.max;for(o(n);n.index0;c--){if(s&&(3===c||4===c)?!function(e){var t=e.path.charCodeAt(e.index);if(48===t){e.param=0,e.index++;return}if(49===t){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}(e):!function(e){var t,n=e.index,i=n,o=e.max,a=!1,s=!1,l=!1,u=!1;if(i>=o){e.err="SvgPath: missed param (at pos "+i+")";return}if((43===(t=e.path.charCodeAt(i))||45===t)&&(t=++i=e.max||!((n=e.path.charCodeAt(e.index))>=48&&n<=57||43===n||45===n||46===n)))break}a(e)}(n);return n.result.length&&(0>"mM".indexOf(n.result[0][0])?(n.err="SvgPath: string should start with `M` or `m`",n.result=[]):n.result[0][0]="M"),{err:n.err,segments:n.result}}},33548:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},i=n(39779),o={date:(0,i.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},s=n(21725),l={ordinalNumber:function(e){return String(e)},era:(0,s.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},u=n(3583),c=n(4285);let h={code:"ar-SA",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:2===t?r[e].two:t<=10?r[e].threeToTen.replace("{{count}}",t):r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return"في خلال "+i;else return"منذ "+i;return i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},34787:(e,t,n)=>{"use strict";function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.d(t,{xI:()=>U});let i=r(),o=/[&<>"']/,a=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>u[e];function h(e,t){if(t){if(o.test(e))return e.replace(a,c)}else if(s.test(e))return e.replace(l,c);return e}let d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(e){return e.replace(d,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}let f=/(^|[^\[])\^/g;function m(e,t){e="string"==typeof e?e:e.source,t=t||"";let n={replace:(t,r)=>(r=(r=r.source||r).replace(f,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}let g=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,n){if(e){let e;try{e=decodeURIComponent(p(n)).replace(g,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!y.test(n)&&(n=function(e,t){b[" "+e]||(w.test(e)?b[" "+e]=e+"/":b[" "+e]=S(e,"/",!0));let n=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"!==t.charAt(0)?e+t:n?t:e.replace(x,"$1")+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}let b={},w=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function E(e){let t=1,n,r;for(;t{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function P(e,t,n,r){let i=t.href,o=t.title?h(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;let e={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:h(a)}}class O{constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:S(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t){let n=e.match(/^(\s+)(?:```)/);if(null===n)return t;let r=n[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=S(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}let n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,a,s,l,u,c,h,d,p,f=t[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");let y=RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=y.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(o=2,d=u.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,d=u.slice(o),o+=t[1].length),s=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p){let t=RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),a=RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(u=h=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(i.test(u)||a.test(u)||t.test(u)||r.test(e)));){if(u.search(/[^ ]/)>=o||!u.trim())d+="\n"+u.slice(o);else if(s)break;else d+="\n"+u;s||u.trim()||(s=!0),n+=h+"\n",e=e.substring(h.length+1)}}!g.loose&&(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d))&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();let v=g.items.length;for(a=0;a"space"===e.type),t=e.every(e=>{let t=e.raw.split(""),n=0;for(let e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1});!g.loose&&e.length&&t&&(g.loose=!0,g.items[a].loose=!0)}return g}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){let t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){let t=this.rules.block.table.exec(e);if(t){let e={type:"table",header:A(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let n,r,i,o;e.raw=t[0];let a=e.align.length;for(n=0;n({text:e}));for(r=0,a=e.header.length;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;let t=S(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=e.length,r=0,i=0;for(;i-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),P(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(!(e=t[e.toLowerCase()])||!e.href){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return P(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;let i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){let n=r[0].length-1,i,o,a=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=i.length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if((a-=o)>0)continue;if(Math.min(n,o=Math.min(o,o+a+s))%2){let t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}let t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=h(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let n=this.rules.inline.autolink.exec(e);if(n){let e,r;return r="@"===n[2]?"mailto:"+(e=h(this.options.mangle?t(n[1]):n[1])):e=h(n[1]),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])r="mailto:"+(e=h(this.options.mangle?t(n[0]):n[0]));else{let t;do t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(t!==n[0]);e=h(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){let n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}let M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};M._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,M.def=m(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.listItemStart=m(/^( *)(bull) */).replace("bull",M.bullet).getRegex(),M.list=m(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=m(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.blockquote=m(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=E({},M),M.gfm=E({},M.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.table=m(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.gfm.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",M.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.pedantic=E({},M.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,paragraph:m(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});let R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=m(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/\\\*|\\_/g,R._comment=m(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=m(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=m(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=m(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=m(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=m(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=m(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=m(R.reflink).replace("label",R._label).replace("ref",M._label).getRegex(),R.nolink=m(R.nolink).replace("ref",M._label).getRegex(),R.reflinkSearch=m(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=E({},R),R.pedantic=E({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=E({},R.normal,{escape:m(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,a,s,l=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+C("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+C("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,l,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e,D))||!this.state.inLink&&(n=this.tokenizer.url(e,D))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i,N)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class L{constructor(e){this.options=e||i}code(e,t,n){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return(e=e.replace(/\n$/,"")+"\n",r)?'
'+(n?e:h(e,!0))+"
\n":"
"+(n?e:h(e,!0))+"
\n"}blockquote(e){return`
${e}
`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){let i=this.options.headerPrefix+r.slug(n);return`${e} `}return`${e} `}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • `}checkbox(e){return" "}paragraph(e){return`

    ${e}

    `}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return` ${e} `}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` `}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r='"}image(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">"}text(e){return e}}class F{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class j{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do n=e+"-"+ ++r;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){let n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class B{constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new L,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new j}static parse(e,t){return new B(t).parse(e)}static parseInline(e,t){return new B(t).parseInline(e)}parse(e,t=!0){let n="",r,i,o,a,s,l,u,c,h,d,f,m,g,y,v,b,w,_,x,k=e.length;for(r=0;r0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=_+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=_+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:_}):y+=_),y+=this.parse(v.tokens,g),h+=this.renderer.listitem(y,w,b);n+=this.renderer.list(h,f,m);continue;case"html":n+=this.renderer.html(d.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(h=d.tokens?this.parseInline(d.tokens):d.text;r+1{i(e.text,e.lang,function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--a&&o()})},0))}),void(0===a&&o())}try{let n=I.lex(e,t);return t.walkTokens&&U.walkTokens(n,t.walkTokens),B.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}}U.options=U.setOptions=function(e){return E(U.defaults,e),i=U.defaults,U},U.getDefaults=r,U.defaults=i,U.use=function(...e){let t,n=E({},...e),r=U.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(e=>{if(e.extensions&&(t=!0,e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if(e.renderer){let t=r.renderers?r.renderers[e.name]:null;t?r.renderers[e.name]=function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:r.renderers[e.name]=e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)})),e.renderer){let t=U.defaults.renderer||new L;for(let n in e.renderer){let r=t[n];t[n]=(...i)=>{let o=e.renderer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.renderer=t}if(e.tokenizer){let t=U.defaults.tokenizer||new O;for(let n in e.tokenizer){let r=t[n];t[n]=(...i)=>{let o=e.tokenizer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.tokenizer=t}if(e.walkTokens){let t=U.defaults.walkTokens;n.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}t&&(n.extensions=r),U.setOptions(n)})},U.walkTokens=function(e,t){for(let n of e)switch(t.call(U,n),n.type){case"table":for(let e of n.header)U.walkTokens(e.tokens,t);for(let e of n.rows)for(let n of e)U.walkTokens(n.tokens,t);break;case"list":U.walkTokens(n.items,t);break;default:U.defaults.extensions&&U.defaults.extensions.childTokens&&U.defaults.extensions.childTokens[n.type]?U.defaults.extensions.childTokens[n.type].forEach(function(e){U.walkTokens(n[e],t)}):n.tokens&&U.walkTokens(n.tokens,t)}},U.parseInline=function(e,t){if(null==e)throw Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");T(t=E({},U.defaults,t||{}));try{let n=I.lexInline(e,t);return t.walkTokens&&U.walkTokens(n,t.walkTokens),B.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}},U.Parser=B,U.parser=B.parse,U.Renderer=L,U.TextRenderer=F,U.Lexer=I,U.lexer=I.lex,U.Tokenizer=O,U.Slugger=j,U.parse=U,U.options,U.setOptions,U.use,U.walkTokens,U.parseInline,B.parse,I.lex},34889:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(62123);function i(e){(0,r.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},35342:(e,t,n)=>{var r=n(83965),i=n(93803);e.exports=function(e,t){return r(i(e,t),1)}},35658:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,n:()=>a});var r=n(37243);let i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,a=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type})]}})},35744:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},35946:(e,t,n)=>{"use strict";let r,i;n.d(t,{Y_:()=>tu});var o,a,s,l,u=n(55729),c="vercel.ai.error",h=Symbol.for(c),d=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[o]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,c)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};o=h;var p=d,f=Symbol.for("vercel.ai.error.AI_APICallError"),m=Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");function g(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var y="AI_InvalidArgumentError",v=`vercel.ai.error.${y}`,b=Symbol.for(v),w=class extends p{constructor({message:e,cause:t,argument:n}){super({name:y,message:e,cause:t}),this[a]=!0,this.argument=n}static isInstance(e){return p.hasMarker(e,v)}};a=b;var _=Symbol.for("vercel.ai.error.AI_InvalidPromptError"),x=Symbol.for("vercel.ai.error.AI_InvalidResponseDataError"),k="AI_JSONParseError",E=`vercel.ai.error.${k}`,A=Symbol.for(E),S=class extends p{constructor({text:e,cause:t}){super({name:k,message:`JSON parsing failed: Text: ${e}. Error message: ${g(t)}`,cause:t}),this[s]=!0,this.text=e}static isInstance(e){return p.hasMarker(e,E)}};s=A;var T=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),C=Symbol.for("vercel.ai.error.AI_LoadSettingError"),P=Symbol.for("vercel.ai.error.AI_NoContentGeneratedError"),O=Symbol.for("vercel.ai.error.AI_NoSuchModelError"),M=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),R="AI_TypeValidationError",N=`vercel.ai.error.${R}`,D=Symbol.for(N),I=class e extends p{constructor({value:e,cause:t}){super({name:R,message:`Type validation failed: Value: ${JSON.stringify(e)}. Error message: ${g(t)}`,cause:t}),this[l]=!0,this.value=e}static isInstance(e){return p.hasMarker(e,N)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};l=D;var L=Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");function F(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||(Array.isArray(e)?e.every(F):"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&F(t)))}let j=(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i--;)r+=e[Math.random()*e.length|0];return r};var B=n(29486);n(29143);var U=(({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=j(n,t);if(null==e)return i;if(n.includes(r))throw new w({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return t=>`${e}${r}${i(t)}`})();function H(e){return e instanceof Error&&("AbortError"===e.name||"TimeoutError"===e.name)}var z=Symbol.for("vercel.ai.validator");function $({text:e,schema:t}){try{let n=B.parse(e);if(null==t)return{success:!0,value:n,rawValue:n};let r=function({value:e,schema:t}){var n;let r="object"==typeof t&&null!==t&&z in t&&!0===t[z]&&"validate"in t?t:(n=t,{[z]:!0,validate:e=>{let t=n.safeParse(e);return t.success?{success:!0,value:t.data}:{success:!1,error:t.error}}});try{if(null==r.validate)return{success:!0,value:e};let t=r.validate(e);if(t.success)return t;return{success:!1,error:I.wrap({value:e,cause:t.error})}}catch(t){return{success:!1,error:I.wrap({value:e,cause:t})}}}({value:n,schema:t});return r.success?{...r,rawValue:n}:r}catch(t){return{success:!1,error:S.isInstance(t)?t:new S({text:e,cause:t})}}}var W=()=>globalThis.fetch,{btoa:q,atob:V}=globalThis;Symbol("Let zodToJsonSchema decide on which parser to use");let Y=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function X(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",o=!1,a=!1,s=!1;for(let e=0;e{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:K(t.currentPath,e.path)};case"none":case"seen":if(e.path.lengtht.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},K=(e,t)=>{let n=0;for(;n(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n);var J={code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},Q={code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},ee={code:"4",name:"assistant_message",parse:e=>{if(null==e||"object"!=typeof e||!("id"in e)||!("role"in e)||!("content"in e)||"string"!=typeof e.id||"string"!=typeof e.role||"assistant"!==e.role||!Array.isArray(e.content)||!e.content.every(e=>null!=e&&"object"==typeof e&&"type"in e&&"text"===e.type&&"text"in e&&null!=e.text&&"object"==typeof e.text&&"value"in e.text&&"string"==typeof e.text.value))throw Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},et={code:"5",name:"assistant_control_data",parse:e=>{if(null==e||"object"!=typeof e||!("threadId"in e)||!("messageId"in e)||"string"!=typeof e.threadId||"string"!=typeof e.messageId)throw Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},en={code:"6",name:"data_message",parse:e=>{if(null==e||"object"!=typeof e||!("role"in e)||!("data"in e)||"string"!=typeof e.role||"data"!==e.role)throw Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},er=[J,Q,ee,et,en],ei={[J.code]:J,[Q.code]:Q,[ee.code]:ee,[et.code]:et,[en.code]:en};J.name,J.code,Q.name,Q.code,ee.name,ee.code,et.name,et.code,en.name,en.code;var eo=er.map(e=>e.code),ea=[{code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},{code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw Error('"data" parts expect an array value.');return{type:"data",value:e}}},{code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},{code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},{code:"9",name:"tool_call",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName||!("args"in e)||"object"!=typeof e.args)throw Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},{code:"a",name:"tool_result",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("result"in e))throw Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},{code:"b",name:"tool_call_streaming_start",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName)throw Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},{code:"c",name:"tool_call_delta",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("argsTextDelta"in e)||"string"!=typeof e.argsTextDelta)throw Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},{code:"d",name:"finish_message",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_message" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}},{code:"e",name:"finish_step",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_step" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&"boolean"==typeof e.isContinued&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},{code:"f",name:"start_step",parse:e=>{if(null==e||"object"!=typeof e||!("messageId"in e)||"string"!=typeof e.messageId)throw Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},{code:"g",name:"reasoning",parse:e=>{if("string"!=typeof e)throw Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},{code:"h",name:"source",parse:e=>{if(null==e||"object"!=typeof e)throw Error('"source" parts expect a Source object.');return{type:"source",value:e}}},{code:"i",name:"redacted_reasoning",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data)throw Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},{code:"j",name:"reasoning_signature",parse:e=>{if(null==e||"object"!=typeof e||!("signature"in e)||"string"!=typeof e.signature)throw Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},{code:"k",name:"file",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data||!("mimeType"in e)||"string"!=typeof e.mimeType)throw Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}}],es=Object.fromEntries(ea.map(e=>[e.code,e]));Object.fromEntries(ea.map(e=>[e.name,e.code]));var el=ea.map(e=>e.code),eu=e=>{let t=e.indexOf(":");if(-1===t)throw Error("Failed to parse stream string. No separator found.");let n=e.slice(0,t);if(!el.includes(n))throw Error(`Failed to parse stream string. Invalid code ${n}.`);let r=JSON.parse(e.slice(t+1));return es[n].parse(r)};async function ec({stream:e,onTextPart:t,onReasoningPart:n,onReasoningSignaturePart:r,onRedactedReasoningPart:i,onSourcePart:o,onFilePart:a,onDataPart:s,onErrorPart:l,onToolCallStreamingStartPart:u,onToolCallDeltaPart:c,onToolCallPart:h,onToolResultPart:d,onMessageAnnotationsPart:p,onFinishMessagePart:f,onFinishStepPart:m,onStartStepPart:g}){let y=e.getReader(),v=new TextDecoder,b=[],w=0;for(;;){let{value:e}=await y.read();if(e&&(b.push(e),w+=e.length,10!==e[e.length-1]))continue;if(0===b.length)break;let _=function(e,t){let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return e.length=0,n}(b,w);for(let{type:e,value:y}of(w=0,v.decode(_,{stream:!0}).split("\n").filter(e=>""!==e).map(eu)))switch(e){case"text":await (null==t?void 0:t(y));break;case"reasoning":await (null==n?void 0:n(y));break;case"reasoning_signature":await (null==r?void 0:r(y));break;case"redacted_reasoning":await (null==i?void 0:i(y));break;case"file":await (null==a?void 0:a(y));break;case"source":await (null==o?void 0:o(y));break;case"data":await (null==s?void 0:s(y));break;case"error":await (null==l?void 0:l(y));break;case"message_annotations":await (null==p?void 0:p(y));break;case"tool_call_streaming_start":await (null==u?void 0:u(y));break;case"tool_call_delta":await (null==c?void 0:c(y));break;case"tool_call":await (null==h?void 0:h(y));break;case"tool_result":await (null==d?void 0:d(y));break;case"finish_message":await (null==f?void 0:f(y));break;case"finish_step":await (null==m?void 0:m(y));break;case"start_step":await (null==g?void 0:g(y));break;default:throw Error(`Unknown stream part type: ${e}`)}}}async function eh({stream:e,update:t,onToolCall:n,onFinish:r,generateId:i=U,getCurrentDate:o=()=>new Date,lastMessage:a}){var s,l;let u,c,h,d=(null==a?void 0:a.role)==="assistant",p=d?1+(null!=(l=null==(s=a.toolInvocations)?void 0:s.reduce((e,t)=>{var n;return Math.max(e,null!=(n=t.step)?n:0)},0))?l:0):0,f=d?structuredClone(a):{id:i(),createdAt:o(),role:"assistant",content:"",parts:[]};function m(e,t){let n=f.parts.find(t=>"tool-invocation"===t.type&&t.toolInvocation.toolCallId===e);null!=n?n.toolInvocation=t:f.parts.push({type:"tool-invocation",toolInvocation:t})}let g=[],y=d?null==a?void 0:a.annotations:void 0,v={},b={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},w="unknown";function _(){let e=[...g];(null==y?void 0:y.length)&&(f.annotations=y),t({message:{...structuredClone(f),revisionId:i()},data:e,replaceLastMessage:d})}await ec({stream:e,onTextPart(e){null==u?(u={type:"text",text:e},f.parts.push(u)):u.text+=e,f.content+=e,_()},onReasoningPart(e){var t;null==h?(h={type:"text",text:e},null!=c&&c.details.push(h)):h.text+=e,null==c?(c={type:"reasoning",reasoning:e,details:[h]},f.parts.push(c)):c.reasoning+=e,f.reasoning=(null!=(t=f.reasoning)?t:"")+e,_()},onReasoningSignaturePart(e){null!=h&&(h.signature=e.signature)},onRedactedReasoningPart(e){null==c&&(c={type:"reasoning",reasoning:"",details:[]},f.parts.push(c)),c.details.push({type:"redacted",data:e.data}),h=void 0,_()},onFilePart(e){f.parts.push({type:"file",mimeType:e.mimeType,data:e.data}),_()},onSourcePart(e){f.parts.push({type:"source",source:e}),_()},onToolCallStreamingStartPart(e){null==f.toolInvocations&&(f.toolInvocations=[]),v[e.toolCallId]={text:"",step:p,toolName:e.toolName,index:f.toolInvocations.length};let t={state:"partial-call",step:p,toolCallId:e.toolCallId,toolName:e.toolName,args:void 0};f.toolInvocations.push(t),m(e.toolCallId,t),_()},onToolCallDeltaPart(e){let t=v[e.toolCallId];t.text+=e.argsTextDelta;let{value:n}=function(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=$({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=$({text:function(e){let t=["ROOT"],n=-1,r=null;function i(e,i,o){switch(e){case'"':n=i,t.pop(),t.push(o),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=i,r=i,t.pop(),t.push(o),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(o),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=i,t.pop(),t.push(o),t.push("INSIDE_NUMBER");break;case"{":n=i,t.pop(),t.push(o),t.push("INSIDE_OBJECT_START");break;case"[":n=i,t.pop(),t.push(o),t.push("INSIDE_ARRAY_START")}}function o(e,r){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=r,t.pop()}}function a(e,r){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=r,t.pop()}}for(let s=0;s=0;n--)switch(t[n]){case"INSIDE_STRING":s+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":s+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":s+="]";break;case"INSIDE_LITERAL":{let t=e.substring(r,e.length);"true".startsWith(t)?s+="true".slice(t.length):"false".startsWith(t)?s+="false".slice(t.length):"null".startsWith(t)&&(s+="null".slice(t.length))}}return s}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}(t.text),r={state:"partial-call",step:t.step,toolCallId:e.toolCallId,toolName:t.toolName,args:n};f.toolInvocations[t.index]=r,m(e.toolCallId,r),_()},async onToolCallPart(e){let t={state:"call",step:p,...e};if(null!=v[e.toolCallId]?f.toolInvocations[v[e.toolCallId].index]=t:(null==f.toolInvocations&&(f.toolInvocations=[]),f.toolInvocations.push(t)),m(e.toolCallId,t),_(),n){let t=await n({toolCall:e});if(null!=t){let n={state:"result",step:p,...e,result:t};f.toolInvocations[f.toolInvocations.length-1]=n,m(e.toolCallId,n),_()}}},onToolResultPart(e){let t=f.toolInvocations;if(null==t)throw Error("tool_result must be preceded by a tool_call");let n=t.findIndex(t=>t.toolCallId===e.toolCallId);if(-1===n)throw Error("tool_result must be preceded by a tool_call with the same toolCallId");let r={...t[n],state:"result",...e};t[n]=r,m(e.toolCallId,r),_()},onDataPart(e){g.push(...e),_()},onMessageAnnotationsPart(e){null==y?y=[...e]:y.push(...e),_()},onFinishStepPart(e){p+=1,u=e.isContinued?u:void 0,c=void 0,h=void 0},onStartStepPart(e){d||(f.id=e.messageId)},onFinishMessagePart(e){w=e.finishReason,null!=e.usage&&(b=function({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}(e.usage))},onErrorPart(e){throw Error(e)}}),null==r||r({message:f,finishReason:w,usage:b})}async function ed({stream:e,onTextPart:t}){let n=e.pipeThrough(new TextDecoderStream).getReader();for(;;){let{done:e,value:r}=await n.read();if(e)break;await t(r)}}async function ep({stream:e,update:t,onFinish:n,getCurrentDate:r=()=>new Date,generateId:i=U}){let o={type:"text",text:""},a={id:i(),createdAt:r(),role:"assistant",content:"",parts:[o]};await ed({stream:e,onTextPart:e=>{a.content+=e,o.text+=e,t({message:{...a},data:[],replaceLastMessage:!1})}}),null==n||n(a,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var ef=()=>fetch;async function em({api:e,body:t,streamProtocol:n="data",credentials:r,headers:i,abortController:o,restoreMessagesOnFailure:a,onResponse:s,onUpdate:l,onFinish:u,onToolCall:c,generateId:h,fetch:d=ef(),lastMessage:p}){var f,m;let g=await d(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...i},signal:null==(f=null==o?void 0:o())?void 0:f.signal,credentials:r}).catch(e=>{throw a(),e});if(s)try{await s(g)}catch(e){throw e}if(!g.ok)throw a(),Error(null!=(m=await g.text())?m:"Failed to fetch the chat response.");if(!g.body)throw Error("The response body is empty.");switch(n){case"text":return void await ep({stream:g.body,update:l,onFinish:u,generateId:h});case"data":return void await eh({stream:g.body,update:l,lastMessage:p,onToolCall:c,onFinish({message:e,finishReason:t,usage:n}){u&&null!=e&&u(e,{usage:n,finishReason:t})},generateId:h});default:throw Error(`Unknown stream protocol: ${n}`)}}function eg(e){return null==e?void 0:e.reduce((e,t)=>{var n;return Math.max(e,null!=(n=t.step)?n:0)},0)}function ey(e){var t;return null!=(t=e.parts)?t:[...e.toolInvocations?e.toolInvocations.map(e=>({type:"tool-invocation",toolInvocation:e})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function ev(e){return e.map(e=>({...e,parts:ey(e)}))}async function eb(e){if(!e)return[];if(e instanceof FileList)return Promise.all(Array.from(e).map(async e=>{let{name:t,type:n}=e;return{name:t,contentType:n,url:await new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{var n;t(null==(n=e.target)?void 0:n.result)},r.onerror=e=>n(e),r.readAsDataURL(e)})}}));if(Array.isArray(e))return e;throw Error("Invalid attachments type")}function ew(e){return"assistant"===e.role&&e.parts.filter(e=>"tool-invocation"===e.type).every(e=>"result"in e.toolInvocation)}Symbol.for("vercel.ai.schema");var e_=n(27133);let ex=()=>{},ek=ex(),eE=Object,eA=e=>e===ek,eS=e=>"function"==typeof e,eT=(e,t)=>({...e,...t}),eC=e=>eS(e.then),eP=new WeakMap,eO=0,eM=e=>{let t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(eE(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=eP.get(e))return t;if(t=++eO+"~",eP.set(e,t),i==Array){for(n=0,t="@";neL&&typeof window.requestAnimationFrame!=eI,eB=(e,t)=>{let n=eR.get(e);return[()=>!eA(t)&&e.get(t)||eN,r=>{if(!eA(t)){let i=e.get(t);t in eD||(eD[t]=i),n[5](t,eT(i,r),i||eN)}},n[6],()=>!eA(t)&&t in eD?eD[t]:!eA(t)&&e.get(t)||eN]},eU=!0,[eH,ez]=eL&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ex,ex],e$={initFocus:e=>(eF&&document.addEventListener("visibilitychange",e),eH("focus",e),()=>{eF&&document.removeEventListener("visibilitychange",e),ez("focus",e)}),initReconnect:e=>{let t=()=>{eU=!0,e()},n=()=>{eU=!1};return eH("online",t),eH("offline",n),()=>{ez("online",t),ez("offline",n)}}},eW=!u.useId,eq=!eL||"Deno"in window,eV=e=>ej()?window.requestAnimationFrame(e):setTimeout(e,1),eY=eq?u.useEffect:u.useLayoutEffect,eX="undefined"!=typeof navigator&&navigator.connection,eG=!eq&&eX&&(["slow-2g","2g"].includes(eX.effectiveType)||eX.saveData),eK=e=>{if(eS(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?eM(e):"",t]},eZ=0,eJ=()=>++eZ;var eQ={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function e0(...e){let[t,n,r,i]=e,o=eT({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=o.populateCache,s=o.rollbackOnError,l=o.optimisticData,u=e=>"function"==typeof s?s(e):!1!==s,c=o.throwOnError;if(eS(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(h))}return h(n);async function h(n){let i,[s]=eK(n);if(!s)return;let[h,d]=eB(t,s),[p,f,m,g]=eR.get(t),y=()=>{let e=p[s];return(eS(o.revalidate)?o.revalidate(h().data,n):!1!==o.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length<3)return y();let v=r,b=eJ();f[s]=[b,0];let w=!eA(l),_=h(),x=_.data,k=_._c,E=eA(k)?x:k;if(w&&d({data:l=eS(l)?l(E,x):l,_c:E}),eS(v))try{v=v(E)}catch(e){i=e}if(v&&eC(v)){if(v=await v.catch(e=>{i=e}),b!==f[s][0]){if(i)throw i;return v}i&&w&&u(i)&&(a=!0,d({data:E,_c:ek}))}if(a&&!i&&(eS(a)?d({data:a(v,E),error:ek,_c:ek}):d({data:v,error:ek,_c:ek})),f[s][1]=eJ(),Promise.resolve(y()).then(()=>{d({_c:ek})}),i){if(c)throw i;return}return v}}let e1=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},e2=(e,t)=>{if(!eR.has(e)){let n=eT(e$,t),r={},i=e0.bind(ek,e),o=ex,a={},s=(e,t)=>{let n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);let i=a[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!eR.has(e)&&(eR.set(e,[r,{},{},{},i,l,s]),!eq)){let t=n.initFocus(setTimeout.bind(ek,e1.bind(ek,r,0))),i=n.initReconnect(setTimeout.bind(ek,e1.bind(ek,r,1)));o=()=>{t&&t(),i&&i(),eR.delete(e)}}};return u(),[e,i,u,o]}return[e,eR.get(e)[4]]},[e5,e3]=e2(new Map),e4=eT({onLoadingSlow:ex,onSuccess:ex,onError:ex,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(eA(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:ex,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:eG?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:eG?5e3:3e3,compare:(e,t)=>eM(e)==eM(t),isPaused:()=>!1,cache:e5,mutate:e3,fallback:{}},{isOnline:()=>eU,isVisible:()=>{let e=eF&&document.visibilityState;return eA(e)||"hidden"!==e}}),e6=(e,t)=>{let n=eT(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=eT(i,a))}return n},e8=(0,u.createContext)({}),e9=eL&&window.__SWR_DEVTOOLS_USE__,e7=e9?window.__SWR_DEVTOOLS_USE__:[],te=e=>eS(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],tt=()=>eT(e4,(0,u.useContext)(e8)),tn=e7.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=eK(t),[,,,i]=eR.get(e5);if(r.startsWith("$inf$"))return n(...e);let o=i[r];return eA(o)?n(...e):(delete i[r],o)});return e(t,i,r)}),tr=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};e9&&(window.__SWR_DEVTOOLS_REACT__=u);let ti=u.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),to={dedupe:!0};eE.defineProperty(e=>{let{value:t}=e,n=(0,u.useContext)(e8),r=eS(t),i=(0,u.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,u.useMemo)(()=>r?i:e6(n,i),[r,n,i]),a=i&&i.provider,s=(0,u.useRef)(ek);a&&!s.current&&(s.current=e2(a(o.cache||e5),i));let l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),eY(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,u.createElement)(e8.Provider,eT(e,{value:o}))},"defaultValue",{value:e4});let ta=(i=(e,t,n)=>{let{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:h,refreshWhenOffline:d,keepPreviousData:p}=n,[f,m,g,y]=eR.get(r),[v,b]=eK(e),w=(0,u.useRef)(!1),_=(0,u.useRef)(!1),x=(0,u.useRef)(v),k=(0,u.useRef)(t),E=(0,u.useRef)(n),A=()=>E.current,S=()=>A().isVisible()&&A().isOnline(),[T,C,P,O]=eB(r,v),M=(0,u.useRef)({}).current,R=eA(a)?n.fallback[v]:a,N=(e,t)=>{for(let n in M)if("data"===n){if(!i(e[n],t[n])&&(!eA(e[n])||!i(z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},D=(0,u.useMemo)(()=>{let e=!!v&&!!t&&(eA(s)?!A().isPaused()&&!o&&(!!eA(l)||l):s),n=t=>{let n=eT(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=O(),a=n(r),u=r===i?a:n(i),c=a;return[()=>{let e=n(T());return N(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[r,v]),I=(0,e_.useSyncExternalStore)((0,u.useCallback)(e=>P(v,(t,n)=>{N(n,t)||e()}),[r,v]),D[0],D[1]),L=!w.current,F=f[v]&&f[v].length>0,j=I.data,B=eA(j)?R:j,U=I.error,H=(0,u.useRef)(B),z=p?eA(j)?H.current:j:B,$=(!F||!!eA(U))&&(L&&!eA(s)?s:!A().isPaused()&&(o?!eA(B)&&l:eA(B)||l)),W=!!(v&&t&&L&&$),q=eA(I.isValidating)?W:I.isValidating,V=eA(I.isLoading)?W:I.isLoading,Y=(0,u.useCallback)(async e=>{let t,r,o=k.current;if(!v||!o||_.current||A().isPaused())return!1;let a=!0,s=e||{},l=!g[v]||!s.dedupe,u=()=>eW?!_.current&&v===x.current&&w.current:v===x.current,c={isValidating:!1,isLoading:!1},h=()=>{C(c)},d=()=>{let e=g[v];e&&e[1]===r&&delete g[v]},p={isValidating:!0};eA(T().data)&&(p.isLoading=!0);try{if(l&&(C(p),n.loadingTimeout&&eA(T().data)&&setTimeout(()=>{a&&u()&&A().onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[o(b),eJ()]),[t,r]=g[v],t=await t,l&&setTimeout(d,n.dedupingInterval),!g[v]||g[v][1]!==r)return l&&u()&&A().onDiscarded(v),!1;c.error=ek;let e=m[v];if(!eA(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),l&&u()&&A().onDiscarded(v),!1;let s=T().data;c.data=i(s,t)?s:t,l&&u()&&A().onSuccess(t,v,n)}catch(n){d();let e=A(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,l&&u()&&(e.onError(n,v,e),(!0===t||eS(t)&&t(n))&&(!A().revalidateOnFocus||!A().revalidateOnReconnect||S())&&e.onErrorRetry(n,v,e,e=>{let t=f[v];t&&t[0]&&t[0](eQ.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,h(),!0},[v,r]),X=(0,u.useCallback)((...e)=>e0(r,x.current,...e),[]);if(eY(()=>{k.current=t,E.current=n,eA(j)||(H.current=j)}),eY(()=>{if(!v)return;let e=Y.bind(ek,to),t=0,n=tr(v,f,(n,r={})=>{if(n==eQ.FOCUS_EVENT){let n=Date.now();A().revalidateOnFocus&&n>t&&S()&&(t=n+A().focusThrottleInterval,e())}else if(n==eQ.RECONNECT_EVENT)A().revalidateOnReconnect&&S()&&e();else if(n==eQ.MUTATE_EVENT)return Y();else if(n==eQ.ERROR_REVALIDATE_EVENT)return Y(r)});return _.current=!1,x.current=v,w.current=!0,C({_k:b}),$&&(eA(B)||eq?e():eV(e)),()=>{_.current=!0,n()}},[v]),eY(()=>{let e;function t(){let t=eS(c)?c(T().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!T().error&&(h||A().isVisible())&&(d||A().isOnline())?Y(to).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[c,h,d,v]),(0,u.useDebugValue)(z),o&&eA(B)&&v){if(!eW&&eq)throw Error("Fallback data is required when using suspense in SSR.");k.current=t,E.current=n,_.current=!1;let e=y[v];if(eA(e)||ti(X(e)),eA(U)){let e=Y(to);eA(z)||(e.status="fulfilled",e.value=!0),ti(e)}else throw U}return{mutate:X,get data(){return M.data=!0,z},get error(){return M.error=!0,U},get isValidating(){return M.isValidating=!0,q},get isLoading(){return M.isLoading=!0,V}}},function(...e){let t=tt(),[n,r,o]=te(e),a=e6(t,o),s=i,{use:l}=a,u=(l||[]).concat(tn);for(let e=u.length;e--;)s=u[e](s);return s(n,r||a.fetcher||null,a)});var ts=n(88205);function tl(e,t){return null!=t?ts(e,t):e}function tu({api:e="/api/chat",id:t,initialMessages:n,initialInput:r="",sendExtraMessageFields:i,onToolCall:o,experimental_prepareRequestBody:a,maxSteps:s=1,streamProtocol:l="data",onResponse:c,onFinish:h,onError:d,credentials:p,headers:f,body:m,generateId:g=U,fetch:y,keepLastMessageOnError:v=!0,experimental_throttle:b}={}){let[w]=(0,u.useState)(g),_=null!=t?t:w,x="string"==typeof e?[e,_]:_,k=function(e){let[t,n]=(0,u.useState)(e);return(0,u.useEffect)(()=>{!function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if("object"!=typeof t&&"object"!=typeof n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(Array.isArray(t)){if(t.length!==n.length)return!1;for(let r=0;rev(k),[k])}),S=(0,u.useRef)(E||[]);(0,u.useEffect)(()=>{S.current=E||[]},[E]);let{data:T,mutate:C}=ta([x,"streamData"],null),P=(0,u.useRef)(T);(0,u.useEffect)(()=>{P.current=T},[T]);let{data:O="ready",mutate:M}=ta([x,"status"],null),{data:R,mutate:N}=ta([x,"error"],null),D=(0,u.useRef)(null),I=(0,u.useRef)({credentials:p,headers:f,body:m});(0,u.useEffect)(()=>{I.current={credentials:p,headers:f,body:m}},[p,f,m]);let L=(0,u.useCallback)(async t=>{var n,r;M("submitted"),N(void 0);let u=ev(t.messages),p=u.length,f=eg(null==(n=u[u.length-1])?void 0:n.toolInvocations);try{D.current=new AbortController;let n=tl(A,b),s=tl(C,b),d=S.current;n(u,!1);let p=i?u:u.map(({role:e,content:t,experimental_attachments:n,data:r,annotations:i,toolInvocations:o,parts:a})=>({role:e,content:t,...void 0!==n&&{experimental_attachments:n},...void 0!==r&&{data:r},...void 0!==i&&{annotations:i},...void 0!==o&&{toolInvocations:o},...void 0!==a&&{parts:a}})),f=P.current;await em({api:e,body:null!=(r=null==a?void 0:a({id:_,messages:u,requestData:t.data,requestBody:t.body}))?r:{id:_,messages:p,data:t.data,...I.current.body,...t.body},streamProtocol:l,credentials:I.current.credentials,headers:{...I.current.headers,...t.headers},abortController:()=>D.current,restoreMessagesOnFailure(){v||n(d,!1)},onResponse:c,onUpdate({message:e,data:t,replaceLastMessage:r}){M("streaming"),n([...r?u.slice(0,u.length-1):u,e],!1),(null==t?void 0:t.length)&&s([...null!=f?f:[],...t],!1)},onToolCall:o,onFinish:h,generateId:g,fetch:y,lastMessage:u[u.length-1]}),D.current=null,M("ready")}catch(e){if("AbortError"===e.name)return D.current=null,M("ready"),null;d&&e instanceof Error&&d(e),N(e),M("error")}let m=S.current;(function({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:n,messages:r}){var i;let o,a=r[r.length-1];return n>1&&null!=a&&(r.length>t||eg(a.toolInvocations)!==e)&&ew(a)&&(o=!1,a.parts.forEach(e=>{"text"===e.type&&(o=!0),"tool-invocation"===e.type&&(o=!1)}),!o)&&(null!=(i=eg(a.toolInvocations))?i:0){var o,a;let s=await eb(i);return L({messages:S.current.concat({...e,id:null!=(o=e.id)?o:g(),createdAt:null!=(a=e.createdAt)?a:new Date,experimental_attachments:s.length>0?s:void 0,parts:ey(e)}),headers:n,body:r,data:t})},[L,g]),j=(0,u.useCallback)(async({data:e,headers:t,body:n}={})=>{let r=S.current;return 0===r.length?null:L({messages:"assistant"===r[r.length-1].role?r.slice(0,-1):r,headers:t,body:n,data:e})},[L]),B=(0,u.useCallback)(()=>{D.current&&(D.current.abort(),D.current=null)},[]),H=(0,u.useCallback)(e=>{"function"==typeof e&&(e=e(S.current));let t=ev(e);A(t,!1),S.current=t},[A]),z=(0,u.useCallback)(e=>{"function"==typeof e&&(e=e(P.current)),C(e,!1),P.current=e},[C]),[$,W]=(0,u.useState)(r),q=(0,u.useCallback)(async(e,t={},n)=>{var r;if(null==(r=null==e?void 0:e.preventDefault)||r.call(e),!$&&!t.allowEmptySubmit)return;n&&(I.current={...I.current,...n});let i=await eb(t.experimental_attachments);L({messages:S.current.concat({id:g(),createdAt:new Date,role:"user",content:$,experimental_attachments:i.length>0?i:void 0,parts:[{type:"text",text:$}]}),headers:t.headers,body:t.body,data:t.data}),W("")},[$,g,L]);return{messages:null!=E?E:[],id:_,setMessages:H,data:T,setData:z,error:R,append:F,reload:j,stop:B,input:$,setInput:W,handleInputChange:e=>{W(e.target.value)},handleSubmit:q,isLoading:"submitted"===O||"streaming"===O,status:O,addToolResult:(0,u.useCallback)(({toolCallId:e,result:t})=>{let n=S.current;!function({messages:e,toolCallId:t,toolResult:n}){var r;let i=e[e.length-1],o=i.parts.find(e=>"tool-invocation"===e.type&&e.toolInvocation.toolCallId===t);if(null==o)return;let a={...o.toolInvocation,state:"result",result:n};o.toolInvocation=a,i.toolInvocations=null==(r=i.toolInvocations)?void 0:r.map(e=>e.toolCallId===t?a:e)}({messages:n,toolCallId:e,toolResult:t}),A(n,!1),ew(n[n.length-1])&&L({messages:n})},[A,L])}}},36062:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l,r:()=>s});var r=n(6029),i=n(21938),o=n(45460),a=n(2241);let s=(0,o.R)(function(e,t){let{isExternal:n,target:o,rel:s,className:l,...u}=e;return(0,r.jsx)(a.B.a,{...u,ref:t,className:(0,i.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":s,target:n?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),l=(0,o.R)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(a.B.div,{ref:t,position:"relative",...o,className:(0,i.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})})},36215:(e,t,n)=>{"use strict";n.d(t,{vC:()=>P});var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function i(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function o(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},h={},d=1;d<20;d++)s["f".concat(d)]=111+d;var p=[],f=!1,m="all",g=[],y=function(e){return s[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function v(e){m=e||"all"}function b(){return m||"all"}var w=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,s=void 0===i?"+":i;a(t).forEach(function(e){var t=e.split(s),i=t.length,a=t[i-1],u="*"===a?"*":y(a);if(h[u]){n||(n=b());var c=i>1?o(l,t):[];h[u]=h[u].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o0,c)Object.prototype.hasOwnProperty.call(c,o)&&(!c[o]&&t.mods.indexOf(+o)>-1||c[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!i&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var n=h["*"],r=e.keyCode||e.which||e.charCode;if(k.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in c){for(var i in c[r]=!0,l)l[i]===r&&(k[i]=!0);if(!n)return}for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(c[o]=e[u[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),c[17]=!0,c[18]=!0);var a=b();if(n)for(var s=0;s1&&(u=o(l,e)),(e="*"===(e=e[e.length-1])?"*":y(e))in h||(h[e]=[]),h[e].push({keyup:b,keydown:w,scope:d,mods:u,shortcut:s[v],method:n,key:s[v],splitKey:_,element:m});void 0!==m&&(r=m,!(g.indexOf(r)>-1))&&window&&(g.push(m),i(m,"keydown",function(e){x(e,m)},E),f||(f=!0,i(window,"focus",function(){p=[]},E)),i(m,"keyup",function(e){x(e,m);var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in c)for(var r in c[t]=!1,l)l[r]===t&&(k[r]=!1)},E))}var E={setScope:v,getScope:b,deleteScope:function(e,t){var n,r;for(var i in e||(e=b()),h)if(Object.prototype.hasOwnProperty.call(h,i))for(r=0,n=h[i];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(h).forEach(function(n){var r=h[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(h).forEach(function(e){return delete h[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&w(e)});else if("object"==typeof e)e.key&&w(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{"use strict";n.d(t,{T:()=>d});var r=n(6029),i=n(5858),o=n(32496),a=n(21938),s=n(79056),l=n(45460),u=n(8527),c=n(2241);let h=["h","minH","height","minHeight"],d=(0,l.R)((e,t)=>{let n=(0,u.V)("Textarea",e),{className:l,rows:d,...p}=(0,i.M)(e),f=(0,s.t)(p),m=d?(0,o.c)(n,h):n;return(0,r.jsx)(c.B.textarea,{ref:t,rows:d,...f,className:(0,a.cx)("chakra-textarea",l),__css:m})});d.displayName="Textarea"},36486:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},36693:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(6029),i=n(19889),o=n(21938),a=n(49146),s=n(61400),l=n(45460),u=n(2241);let c=(0,l.R)(function(e,t){let n=(0,a.e)(),l=(0,s.Vh)({...e,ref:t}),c=(0,i.H2)({outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab});return(0,r.jsx)(u.B.button,{...l,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:c})});c.displayName="Tab"},37393:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=r(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}n.d(t,{Ay:()=>eq});var s,l=Math.max,u=Math.min,c=Math.round;function h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=c(n.width)/s||1),a>0&&(i=c(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return h(f(e)).left+d(e).scrollLeft}function g(e){return r(e).getComputedStyle(e)}function y(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function v(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||f(e)}function w(e,t){void 0===t&&(t=[]);var n,i=function e(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:o(t)&&y(t)?t:e(b(t))}(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),s=r(i),l=a?[s].concat(s.visualViewport||[],y(i)?i:[]):i,u=t.concat(l);return a?u:u.concat(w(b(l)))}function _(e){return o(e)&&"fixed"!==g(e).position?e.offsetParent:null}function x(e){for(var t=r(e),n=_(e);n&&["table","td","th"].indexOf(p(n))>=0&&"static"===g(n).position;)n=_(n);return n&&("html"===p(n)||"body"===p(n)&&"static"===g(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===g(e).position)return null;for(var n=b(e);o(n)&&0>["html","body"].indexOf(p(n));){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var k="bottom",E="right",A="left",S="auto",T=["top",k,E,A],C="start",P="viewport",O="popper",M=T.reduce(function(e,t){return e.concat([t+"-"+C,t+"-end"])},[]),R=[].concat(T,[S]).reduce(function(e,t){return e.concat([t,t+"-"+C,t+"-end"])},[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],D={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function U(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?F(i):null,a=i?j(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case k:t={x:s,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?B(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case C:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var H={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z(e){var t,n,i,o,a,s=e.popper,l=e.popperRect,u=e.placement,h=e.variation,d=e.offsets,p=e.position,m=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,w=!0===v?(t=d.x,n=d.y,{x:c(t*(i=window.devicePixelRatio||1))/i||0,y:c(n*i)/i||0}):"function"==typeof v?v(d):d,_=w.x,S=void 0===_?0:_,T=w.y,C=void 0===T?0:T,P=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),M=A,R="top",N=window;if(y){var D=x(s),I="clientHeight",L="clientWidth";D===r(s)&&"static"!==g(D=f(s)).position&&"absolute"===p&&(I="scrollHeight",L="scrollWidth"),("top"===u||(u===A||u===E)&&"end"===h)&&(R=k,C-=(b&&N.visualViewport?N.visualViewport.height:D[I])-l.height,C*=m?1:-1),(u===A||("top"===u||u===k)&&"end"===h)&&(M=E,S-=(b&&N.visualViewport?N.visualViewport.width:D[L])-l.width,S*=m?1:-1)}var F=Object.assign({position:p},y&&H);return m?Object.assign({},F,((a={})[R]=O?"0":"",a[M]=P?"0":"",a.transform=1>=(N.devicePixelRatio||1)?"translate("+S+"px, "+C+"px)":"translate3d("+S+"px, "+C+"px, 0)",a)):Object.assign({},F,((o={})[R]=O?C+"px":"",o[M]=P?S+"px":"",o.transform="",o))}let $={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});o(r)&&p(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};var W={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,function(e){return W[e]})}var V={start:"end",end:"start"};function Y(e){return e.replace(/start|end/g,function(e){return V[e]})}function X(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function G(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K(e,t){var n,o,a,s,u,c,p,y,v,b,w,_,x,k,E,A,S;return t===P?G((n=r(e),o=f(e),a=n.visualViewport,s=o.clientWidth,u=o.clientHeight,c=0,p=0,a&&(s=a.width,u=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=a.offsetLeft,p=a.offsetTop)),{width:s,height:u,x:c+m(e),y:p})):i(t)?((y=h(t)).top=y.top+t.clientTop,y.left=y.left+t.clientLeft,y.bottom=y.top+t.clientHeight,y.right=y.left+t.clientWidth,y.width=t.clientWidth,y.height=t.clientHeight,y.x=y.left,y.y=y.top,y):G((v=f(e),w=f(v),_=d(v),x=null==(b=v.ownerDocument)?void 0:b.body,k=l(w.scrollWidth,w.clientWidth,x?x.scrollWidth:0,x?x.clientWidth:0),E=l(w.scrollHeight,w.clientHeight,x?x.scrollHeight:0,x?x.clientHeight:0),A=-_.scrollLeft+m(v),S=-_.scrollTop,"rtl"===g(x||w).direction&&(A+=l(w.clientWidth,x?x.clientWidth:0)-k),{width:k,height:E,x:A,y:S}))}function Z(){return{top:0,right:0,bottom:0,left:0}}function J(e){return Object.assign({},Z(),e)}function Q(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ee(e,t){void 0===t&&(t={});var n,r,a,s,c,d,m,y,v,_=t,A=_.placement,S=void 0===A?e.placement:A,C=_.boundary,M=_.rootBoundary,R=_.elementContext,N=void 0===R?O:R,D=_.altBoundary,I=_.padding,L=void 0===I?0:I,F=J("number"!=typeof L?L:Q(L,T)),j=e.rects.popper,B=e.elements[void 0!==D&&D?N===O?"reference":O:N],H=(n=i(B)?B:B.contextElement||f(e.elements.popper),r=void 0===C?"clippingParents":C,a=void 0===M?P:M,y=(m=[].concat("clippingParents"===r?(s=w(b(n)),!i(d=(c=["absolute","fixed"].indexOf(g(n).position)>=0)&&o(n)?x(n):n)?[]:s.filter(function(e){return i(e)&&X(e,d)&&"body"!==p(e)&&(!c||"static"!==g(e).position)})):[].concat(r),[a]))[0],(v=m.reduce(function(e,t){var r=K(n,t);return e.top=l(r.top,e.top),e.right=u(r.right,e.right),e.bottom=u(r.bottom,e.bottom),e.left=l(r.left,e.left),e},K(n,y))).width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v),z=h(e.elements.reference),$=U({reference:z,element:j,strategy:"absolute",placement:S}),W=G(Object.assign({},j,$)),q=N===O?W:z,V={top:H.top-q.top+F.top,bottom:q.bottom-H.bottom+F.bottom,left:H.left-q.left+F.left,right:q.right-H.right+F.right},Y=e.modifiersData.offset;if(N===O&&Y){var Z=Y[S];Object.keys(V).forEach(function(e){var t=[E,k].indexOf(e)>=0?1:-1,n=["top",k].indexOf(e)>=0?"y":"x";V[e]+=Z[n]*t})}return V}function et(e,t,n){return l(e,u(t,n))}function en(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function er(e){return["top",E,k,A].some(function(t){return e[t]>=0})}var ei=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,a=void 0===n?[]:n,s=t.defaultOptions,l=void 0===s?D:s;return function(e,t,n){void 0===n&&(n=l);var s,u,g={placement:"bottom",orderedModifiers:[],options:Object.assign({},D,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},b=[],_=!1,k={state:g,setOptions:function(n){var r,o,s,u,c,h,d="function"==typeof n?n(g.options):n;E(),g.options=Object.assign({},l,g.options,d),g.scrollParents={reference:i(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var p=(o=Object.keys(r=[].concat(a,g.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),s=new Map,u=new Set,c=[],o.forEach(function(e){s.set(e.name,e)}),o.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var n=s.get(t);n&&e(n)}}),c.push(t)}(e)}),h=c,N.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return g.orderedModifiers=p.filter(function(e){return e.enabled}),g.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:g,name:t,instance:k,options:void 0===n?{}:n});b.push(i||function(){})}}),k.update()},forceUpdate:function(){if(!_){var e,t,n,i,a,s,l,u,b,w,E,A=g.elements,S=A.reference,T=A.popper;if(I(S,T)){g.rects={reference:(e=x(T),t="fixed"===g.options.strategy,n=o(e),l=o(e)&&(a=c((i=e.getBoundingClientRect()).width)/e.offsetWidth||1,s=c(i.height)/e.offsetHeight||1,1!==a||1!==s),u=f(e),b=h(S,l),w={scrollLeft:0,scrollTop:0},E={x:0,y:0},(n||!n&&!t)&&(("body"!==p(e)||y(u))&&(w=function(e){return e!==r(e)&&o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:d(e)}(e)),o(e)?(E=h(e,!0),E.x+=e.clientLeft,E.y+=e.clientTop):u&&(E.x=m(u))),{x:b.left+w.scrollLeft-E.x,y:b.top+w.scrollTop-E.y,width:b.width,height:b.height}),popper:v(T)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(e){return g.modifiersData[e.name]=Object.assign({},e.data)});for(var C=0;C=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[A,E].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=F(g)===g,v=l||(y||!f?[q(g)]:function(e){if(F(e)===S)return[];var t=q(e);return[Y(e),t,Y(t)]}(g)),b=[g].concat(v).reduce(function(e,n){var r,i,o,a,s,l,d,p,g,y,v,b;return e.concat(F(n)===S?(i=(r={placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:f,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,p=void 0===(d=r.allowedAutoPlacements)?R:d,0===(v=(y=(g=j(i))?l?M:M.filter(function(e){return j(e)===g}):T).filter(function(e){return p.indexOf(e)>=0})).length&&(v=y),Object.keys(b=v.reduce(function(e,n){return e[n]=ee(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[F(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,P=!0,O=b[0],N=0;N=0,U=B?"width":"height",H=ee(t,{placement:D,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),z=B?L?E:A:L?k:"top";w[U]>_[U]&&(z=q(z));var $=q(z),W=[];if(o&&W.push(H[I]<=0),s&&W.push(H[z]<=0,H[$]<=0),W.every(function(e){return e})){O=D,P=!1;break}x.set(D,W)}if(P)for(var V=f?3:1,X=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},G=V;G>0&&"break"!==X(G);G--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=ee(t,{boundary:a,rootBoundary:s,padding:h,altBoundary:c}),y=F(t.placement),b=j(t.placement),w=!b,_=B(y),S="x"===_?"y":"x",T=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,M="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(void 0===i||i){var I,L="y"===_?"top":A,U="y"===_?k:E,H="y"===_?"height":"width",z=T[_],$=z+g[L],W=z-g[U],q=p?-O[H]/2:0,V=b===C?P[H]:O[H],Y=b===C?-O[H]:-P[H],X=t.elements.arrow,G=p&&X?v(X):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z(),J=K[L],Q=K[U],en=et(0,P[H],G[H]),er=w?P[H]/2-q-en-J-R.mainAxis:V-en-J-R.mainAxis,ei=w?-P[H]/2+q+en+Q+R.mainAxis:Y+en+Q+R.mainAxis,eo=t.elements.arrow&&x(t.elements.arrow),ea=eo?"y"===_?eo.clientTop||0:eo.clientLeft||0:0,es=null!=(I=null==N?void 0:N[_])?I:0,el=et(p?u($,z+er-es-ea):$,z,p?l(W,z+ei-es):W);T[_]=el,D[_]=el-z}if(void 0!==o&&o){var eu,ec,eh="x"===_?"top":A,ed="x"===_?k:E,ep=T[S],ef="y"===S?"height":"width",em=ep+g[eh],eg=ep-g[ed],ey=-1!==["top",A].indexOf(y),ev=null!=(ec=null==N?void 0:N[S])?ec:0,eb=ey?em:ep-P[ef]-O[ef]-ev+R.altAxis,ew=ey?ep+P[ef]+O[ef]-ev-R.altAxis:eg,e_=p&&ey?(eu=et(eb,ep,ew))>ew?ew:eu:et(p?eb:em,ep,p?ew:eg);T[S]=e_,D[S]=e_-ep}t.modifiersData[r]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=F(n.placement),l=B(s),u=[A,E].indexOf(s)>=0?"height":"width";if(o&&a){var c,h=(c=i.padding,J("number"!=typeof(c="function"==typeof c?c(Object.assign({},n.rects,{placement:n.placement})):c)?c:Q(c,T))),d=v(o),p="y"===l?"top":A,f="y"===l?k:E,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],y=x(o),b=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,w=h[p],_=b-d[u]-h[f],S=b/2-d[u]/2+(m/2-g/2),C=et(w,S,_);n.modifiersData[r]=((t={})[l]=C,t.centerOffset=C-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;if(null!=r){if("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!X(t.elements.popper,r))return;t.elements.arrow=r}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ee(t,{elementContext:"reference"}),s=ee(t,{altBoundary:!0}),l=en(a,r),u=en(s,i,o),c=er(l),h=er(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]}),eo="tippy-content",ea="tippy-arrow",es="tippy-svg-arrow",el={passive:!0,capture:!0},eu=function(){return document.body};function ec(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function eh(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ed(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ep(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function ef(e){return[].concat(e)}function em(e,t){-1===e.indexOf(t)&&e.push(t)}function eg(e){return[].slice.call(e)}function ey(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function ev(){return document.createElement("div")}function eb(e){return["Element","Fragment"].some(function(t){return eh(e,t)})}function ew(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function e_(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ex(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function ek(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var eE={isTouch:!1},eA=0;function eS(){!eE.isTouch&&(eE.isTouch=!0,window.performance&&document.addEventListener("mousemove",eT))}function eT(){var e=performance.now();e-eA<20&&(eE.isTouch=!1,document.removeEventListener("mousemove",eT)),eA=e}function eC(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var eP="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;function eO(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}var eM=Object.assign({appendTo:eu,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eR=Object.keys(eM);function eN(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=eM[i])?r:o),t},{});return Object.assign({},e,t)}function eD(e,t){var n,r=Object.assign({},t,{content:ed(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(eN(Object.assign({},eM,{plugins:n}))):eR).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},eM.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function eI(e,t){e.innerHTML=t}function eL(e){var t=ev();return!0===e?t.className=ea:(t.className=es,eb(e)?t.appendChild(e):eI(t,e)),t}function eF(e,t){eb(t.content)?(eI(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?eI(e,t.content):e.textContent=t.content)}function ej(e){var t=e.firstElementChild,n=eg(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(eo)}),arrow:n.find(function(e){return e.classList.contains(ea)||e.classList.contains(es)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function eB(e){var t=ev(),n=ev();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ev();function i(n,r){var i=ej(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&eF(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(eL(r.arrow))):o.appendChild(eL(r.arrow)):s&&o.removeChild(s)}return r.className=eo,r.setAttribute("data-state","hidden"),eF(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}eB.$$tippy=!0;var eU=1,eH=[],ez=[];function e$(e,t){void 0===t&&(t={});var n,r=eM.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eS,el),window.addEventListener("blur",eC);var i=Object.assign({},t,{plugins:r}),o=(eb(n=e)?[n]:eh(n,"NodeList")?eg(n):Array.isArray(n)?n:eg(document.querySelectorAll(n))).reduce(function(e,t){var n=t&&function(e,t){var n,r,i,o,a,s,l,u,c=eD(e,Object.assign({},eM,eN(ey(t)))),h=!1,d=!1,p=!1,f=!1,m=[],g=ep(q,c.interactiveDebounce),y=eU++,v=(n=c.plugins).filter(function(e,t){return n.indexOf(e)===t}),b={id:y,reference:e,popper:ev(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){if(!b.state.isDestroyed){M("onBeforeUpdate",[b,t]),$();var n=b.props,r=eD(e,Object.assign({},n,ey(t),{ignoreAttributes:!0}));b.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),g=ep(q,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?ef(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),N(),O(),x&&x(n,r),b.popperInstance&&(G(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var t=b.state.isVisible,n=b.state.isDestroyed,r=!b.state.isEnabled,i=eE.isTouch&&!b.props.touch,o=ec(b.props.duration,0,eM.duration);if(!(t||n||r||i||(u||e).hasAttribute("disabled"))&&(M("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,T()&&(_.style.visibility="visible"),O(),j(),b.state.isMounted||(_.style.transition="none"),T()){var a,s,c,h=ej(_);ew([h.box,h.content],0)}l=function(){var e;if(b.state.isVisible&&!f){if(f=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,T()&&b.props.animation){var t=ej(_),n=t.box,r=t.content;ew([n,r],o),e_([n,r],"visible")}R(),N(),em(ez,b),null==(e=b.popperInstance)||e.forceUpdate(),M("onMount",[b]),b.props.animation&&T()&&U(o,function(){b.state.isShown=!0,M("onShown",[b])})}},s=b.props.appendTo,c=u||e,(a=b.props.interactive&&s===eu||"parent"===s?c.parentNode:ed(s,[c])).contains(_)||a.appendChild(_),b.state.isMounted=!0,G()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=ec(b.props.duration,1,eM.duration);if(!e&&!t&&!n&&(M("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,h=!1,T()&&(_.style.visibility="hidden"),D(),B(),O(!0),T()){var i,o=ej(_),a=o.box,s=o.content;b.props.animation&&(ew([a,s],r),e_([a,s],"hidden"))}(R(),N(),b.props.animation)?T()&&(i=b.unmount,U(r,function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&i()})):b.unmount()}},hideWithInteractivity:function(e){C().addEventListener("mousemove",g),em(eH,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(K(),Z().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),ez=ez.filter(function(e){return e!==b}),b.state.isMounted=!1,M("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,M("onDestroy",[b]))}};if(!c.render)return b;var w=c.render(b),_=w.popper,x=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var k=v.map(function(e){return e.fn(b)}),E=e.hasAttribute("aria-expanded");return z(),N(),O(),M("onCreate",[b]),c.showOnCreate&&J(),_.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)}),b;function A(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===A()[0]}function T(){var e;return!!(null!=(e=b.props.render)&&e.$$tippy)}function C(){var t,n,r=(u||e).parentNode;return r&&null!=(n=ef(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function P(e){return b.state.isMounted&&!b.state.isVisible||eE.isTouch||a&&"focus"===a.type?0:ec(b.props.delay,+!e,eM.delay)}function O(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function M(e,t,n){if(void 0===n&&(n=!0),k.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=b.props)[e].apply(r,t)}}function R(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=_.id;ef(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function N(){!E&&b.props.aria.expanded&&ef(b.props.triggerTarget||e).forEach(function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===(u||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function D(){C().removeEventListener("mousemove",g),eH=eH.filter(function(e){return e!==g})}function I(t){if(!eE.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(b.props.interactive&&ek(_,n))){if(ef(b.props.triggerTarget||e).some(function(e){return ek(e,n)})){if(eE.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout(function(){d=!1}),b.state.isMounted||B())}}}function L(){p=!0}function F(){p=!1}function j(){var e=C();e.addEventListener("mousedown",I,!0),e.addEventListener("touchend",I,el),e.addEventListener("touchstart",F,el),e.addEventListener("touchmove",L,el)}function B(){var e=C();e.removeEventListener("mousedown",I,!0),e.removeEventListener("touchend",I,el),e.removeEventListener("touchstart",F,el),e.removeEventListener("touchmove",L,el)}function U(e,t){var n=ej(_).box;function r(e){e.target===n&&(ex(n,"remove",r),t())}if(0===e)return t();ex(n,"remove",s),ex(n,"add",r),s=r}function H(t,n,r){void 0===r&&(r=!1),ef(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function z(){S()&&(H("touchstart",W,{passive:!0}),H("touchend",V,{passive:!0})),b.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(H(e,W),e){case"mouseenter":H("mouseleave",V);break;case"focus":H(eP?"focusout":"blur",Y);break;case"focusin":H("focusout",Y)}})}function $(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function W(e){var t,n=!1;if(!(!b.state.isEnabled||X(e))&&!d){var r=(null==(t=a)?void 0:t.type)==="focus";a=e,u=e.currentTarget,N(),!b.state.isVisible&&eh(e,"MouseEvent")&&eH.forEach(function(t){return t(e)}),"click"===e.type&&(0>b.props.trigger.indexOf("mouseenter")||h)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:J(e),"click"===e.type&&(h=!n),n&&!r&&Q(e)}}function q(t){var n,r,i,o=t.target,a=(u||e).contains(o)||_.contains(o);("mousemove"!==t.type||!a)&&(n=Z().concat(_).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,a=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,h="left"===a?s.right.x:0,d=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-r+c>o,m=r-t.right-h>o;return d||p||f||m})&&(D(),Q(t)))}function V(e){if(!(X(e)||b.props.trigger.indexOf("click")>=0&&h)){if(b.props.interactive)return void b.hideWithInteractivity(e);Q(e)}}function Y(t){(!(0>b.props.trigger.indexOf("focusin"))||t.target===(u||e))&&(b.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||Q(t))}function X(e){return!!eE.isTouch&&S()!==e.type.indexOf("touch")>=0}function G(){K();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,s=T()?ej(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||u||e}:e,h=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=ej(_).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];T()&&s&&h.push({name:"arrow",options:{element:s,padding:3}}),h.push.apply(h,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ei(c,_,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:h}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return eg(_.querySelectorAll("[data-tippy-root]"))}function J(e){b.clearDelayTimeouts(),e&&M("onTrigger",[b,e]),j();var t=P(!0),n=A(),i=n[0],o=n[1];eE.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){b.show()},t):b.show()}function Q(e){if(b.clearDelayTimeouts(),M("onUntrigger",[b,e]),!b.state.isVisible)return void B();if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!h){var t=P(!1);t?i=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}}(t,i);return n&&e.push(n),e},[]);return eb(e)?o[0]:o}e$.defaultProps=eM,e$.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eM[t]=e[t]})},e$.currentInput=eE,Object.assign({},$,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var eW={clientX:0,clientY:0};e$.setDefaultProps({render:eB});let eq=e$},37930:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(6029),i=n(21938),o=n(83550),a=n(53297);let s=e=>{let{className:t,title:n,...s}=e,l=(0,a.vX)(s);return(0,r.jsx)(o.r,{title:n,className:(0,i.cx)("chakra-menu__option-group",t),...l})};s.displayName="MenuOptionGroup"},38394:(e,t,n)=>{"use strict";function r(e,t){return Array(t+1).join(e)}n.d(t,{A:()=>M});var i,o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function a(e){return c(e,o)}var s=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function l(e){return c(e,s)}var u=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c(e,t){return t.indexOf(e.nodeName)>=0}function h(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var d={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function f(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,n){for(var r=0;r-1)return!0}else if("function"==typeof r){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,n))return i}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function y(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}d.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},d.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},d.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var i=Number(t.nodeName.charAt(1));if("setext"!==n.headingStyle||!(i<3))return"\n\n"+r("#",i)+" "+e+"\n\n";var o=r(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},d.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},d.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},d.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},d.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},d.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,s=n.fence.charAt(0),l=3,u=RegExp("^"+s+"{3,}","gm");i=u.exec(a);)i[0].length>=l&&(l=i[0].length+1);var c=r(s,l);return"\n\n"+c+o+"\n"+a.replace(/\n$/,"")+"\n"+c+"\n\n"}},d.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},d.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},d.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),a=p(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;r="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},d.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},d.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},d.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},d.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=p(t.getAttribute("title"));return r?"!["+n+"]("+r+(i?' "'+i+'"':"")+")":""}},f.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t'+e+"","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:a,isVoid:l,isPre:t.preformattedCode?_:null}),n}function _(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function x(e,t){var n;return e.isBlock=a(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!l(n=e)&&!c(n,u)&&/^\s*$/i.test(n.textContent)&&!h(n,s)&&!h(n,u),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n,r={leading:(n=e.textContent.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:n[2],leadingNonAscii:n[3],trailing:n[4],trailingNonAscii:n[5],trailingAscii:n[6]};return r.leadingAscii&&k("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&k("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}(e,t),e}function k(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||a(r)||(o=i.test(r.textContent))),o}var E=Array.prototype.reduce,A=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function S(e){if(!(this instanceof S))return new S(e);this.options=function(e){for(var t=1;t0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),i=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,i)+r}S.prototype={turndown:function(e){var t;if(!(null!=(t=e)&&("string"==typeof t||t.nodeType&&(1===t.nodeType||9===t.nodeType||11===t.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":C.call(this,T.call(this,new w(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t{"use strict";n.d(t,{A:()=>u});var r=n(55729);function i(){return(i=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{D:()=>l});var r=n(6029),i=n(21938),o=n(25062),a=n(45460),s=n(2241);let l=(0,a.R)(function(e,t){let{getHeaderProps:n}=(0,o.C_)(),a=(0,o.jm)();return(0,r.jsx)(s.B.header,{...n(e,t),className:(0,i.cx)("chakra-popover__header",e.className),__css:a.header})});l.displayName="PopoverHeader"},38822:e=>{e.exports=function(e){return null==e}},38867:(e,t,n)=>{var r=n(19962),i=n(70930),o=n(5549);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},39099:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>w,Gw:()=>A,KI:()=>N,Q1:()=>i,Qh:()=>E,Uw:()=>a,b:()=>k,ef:()=>o});var r=n(66195);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=RegExp(`^rgb\\(${s},${s},${s}\\)$`),d=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),f=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),m=RegExp(`^hsl\\(${l},${u},${u}\\)$`),g=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),y={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function w(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_(t):3===n?new A(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?x(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?x(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(e))?new A(t[1],t[2],t[3],1):(t=d.exec(e))?new A(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?x(t[1],t[2],t[3],t[4]):(t=f.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?_(y[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function _(e){return new A(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new A(e,t,n,r)}function k(e){return(e instanceof i||(e=w(e)),e)?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function E(e,t,n,r){return 1==arguments.length?k(e):new A(e,t,n,null==r?1:r)}function A(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return`#${O(this.r)}${O(this.g)}${O(this.b)}`}function T(){let e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function O(e){return((e=P(e))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,n,r)}function R(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=w(e)),!e)return new D;if(e instanceof D)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new D(s,l,u,e.opacity)}function N(e,t,n,r){return 1==arguments.length?R(e):new D(e,t,n,null==r?1:r)}function D(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function I(e){return(e=(e||0)%360)<0?e+360:e}function L(e){return Math.max(0,Math.min(1,e||0))}function F(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.A)(i,w,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:b,toString:b}),(0,r.A)(A,E,(0,r.X)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new A(P(this.r),P(this.g),P(this.b),C(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:T,toString:T})),(0,r.A)(D,N,(0,r.X)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new D(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new A(F(e>=240?e-240:e+120,i,r),F(e,i,r),F(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new D(I(this.h),L(this.s),L(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${I(this.h)}, ${100*L(this.s)}%, ${100*L(this.l)}%${1===e?")":`, ${e})`}`}}))},39151:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>o,ob:()=>a});var r=n(55729);n(31179);var i=r.createContext(null),o=(i.Consumer,i.Provider),a=i},39446:(e,t,n)=>{"use strict";n.d(t,{mS:()=>u,$G:()=>l,kv:()=>c});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},i="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,a=function(e){var t=new Set([e]),n=new Set,r=e.match(o);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return n.add(e),!1}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=s.prerelease||i.major!==s.major)return a(e);if(0===i.major)return i.minor===s.minor&&i.patch<=s.patch?(t.add(e),!0):a(e);return i.minor<=s.minor?(t.add(e),!0):a(e)}}(i),s=Symbol.for("opentelemetry.js.api."+i.split(".")[0]);function l(e,t,n,o){void 0===o&&(o=!1);var a,l=r[s]=null!=(a=r[s])?a:{version:i};if(!o&&l[e]){var u=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(l.version!==i){var u=Error("@opentelemetry/api: Registration of version v"+l.version+" for "+e+" does not match previously registered API v"+i);return n.error(u.stack||u.message),!1}return l[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+i+"."),!0}function u(e){var t,n,i=null==(t=r[s])?void 0:t.version;if(i&&a(i))return null==(n=r[s])?void 0:n[e]}function c(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+i+".");var n=r[s];n&&delete n[e]}},39730:(e,t,n)=>{var r=n(61308),i=n(3540),o=n(73696),a=o&&o.isRegExp;e.exports=a?i(a):r},39779:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}n.d(t,{A:()=>r})},41033:(e,t,n)=>{var r=n(88601),i=n(66678),o=n(14430),a=n(3540),s=n(97722),l=Array.prototype.splice;e.exports=function(e,t,n,u){var c=u?o:i,h=-1,d=t.length,p=e;for(e===t&&(t=s(t)),n&&(p=r(e,a(n)));++h-1;)p!==e&&l.call(p,f,1),l.call(e,f,1);return e}},41136:(e,t,n)=>{"use strict";n.d(t,{Bq:()=>N,MV:()=>y,M_:()=>m,NC:()=>k,NO:()=>T,Op:()=>C,Oy:()=>x,Rr:()=>v,SF:()=>O,VH:()=>R,_o:()=>b,jy:()=>S,ts:()=>P,v8:()=>M,vL:()=>_,zd:()=>g});var r=n(48331),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e},d=(e,t)=>o(e,a(t));function p(e,...t){return{didIntersect:t.length>0,message:e,points:t}}function f(e,t,n=0){let i=[e[0]+t[0]/2,e[1]+t[1]/2],o=r.l.rotWith(e,i,n),a=r.l.rotWith(r.l.add(e,[t[0],0]),i,n),s=r.l.rotWith(r.l.add(e,t),i,n),l=r.l.rotWith(r.l.add(e,[0,t[1]]),i,n);return[["top",[o,a]],["right",[a,s]],["bottom",[s,l]],["left",[l,o]]]}function m(e,t){let n=r.l.slope(e[0],e[1]),i=r.l.slope(t[0],t[1]);if(n===i)return;if(Number.isNaN(n)&&!Number.isNaN(i))return[e[0][0],(e[0][0]-t[0][0])*i+t[0][1]];if(Number.isNaN(i)&&!Number.isNaN(n))return[t[0][0],(t[0][0]-e[0][0])*n+e[0][1]];let o=(n*e[0][0]-i*t[0][0]+t[0][1]-e[0][1])/(n-i),a=i*(o-t[0][0])+t[0][1];return[o,a]}function g(e,t,n,r){let[i,o]=e,[a,s]=t,[l,u]=n,[c,h]=r;if(s/a!=(h-u)/(c-l)){let e=a*(h-u)-s*(c-l);if(0!==e){let t=((o-u)*(c-l)-(i-l)*(h-u))/e,n=((o-u)*a-(i-l)*s)/e;if(t>=0&&n>=0&&n<=1)return p("intersection",[i+t*a,o+t*s])}}return p("no intersection")}function y(e,t,n,i,o,a){return _(e,r.l.mul(t,0x3b9ac9ff),n,i,o,a)}function v(e,t,n,r=0){let{minX:i,minY:o,width:a,height:s}=n;return function(e,t,n,r,i=0){var o,a,s,l,u;return o=n,a=r,s=i,l=e,u=t,f(o,a,s).reduce((e,[t,[n,r]])=>{let i=g(l,u,n,r);return i&&e.push(p(t,...i.points)),e},[]).filter(e=>e.didIntersect)}(e,t,[i,o],[a,s],r)}function b(e,t,n,i){let o=r.l.sub(e,n),a=r.l.sub(i,n),s=r.l.sub(t,e),l=a[0]*o[1]-a[1]*o[0],u=s[0]*o[1]-s[1]*o[0],c=a[1]*s[0]-a[0]*s[1];if(0===l||0===u)return p("coincident");if(0===c)return p("parallel");if(0!==c){let t=l/c,n=u/c;if(0<=t&&t<=1&&0<=n&&n<=1)return p("intersection",r.l.add(e,r.l.mul(s,t)))}return p("no intersection")}function w(e,t,n,i){let o=(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]),a=2*((t[0]-e[0])*(e[0]-n[0])+(t[1]-e[1])*(e[1]-n[1])),s=a*a-4*o*(n[0]*n[0]+n[1]*n[1]+e[0]*e[0]+e[1]*e[1]-2*(n[0]*e[0]+n[1]*e[1])-i*i);if(s<0)return p("outside");if(0===s)return p("tangent");let l=Math.sqrt(s),u=(-a+l)/(2*o),c=(-a-l)/(2*o);if((u<0||u>1)&&(c<0||c>1))if(u<0&&c<0||u>1&&c>1)return p("outside");else return p("inside");let h=[];return 0<=u&&u<=1&&h.push(r.l.lrp(e,t,u)),0<=c&&c<=1&&h.push(r.l.lrp(e,t,c)),p("intersection",...h)}function _(e,t,n,i,o,a=0){if(0===i||0===o||r.l.isEqual(e,t))return p("no intersection");i=i<0?i:-i,o=o<0?o:-o,e=r.l.sub(r.l.rotWith(e,n,-a),n),t=r.l.sub(r.l.rotWith(t,n,-a),n);let s=r.l.sub(t,e),l=s[0]*s[0]/i/i+s[1]*s[1]/o/o,u=2*e[0]*s[0]/i/i+2*e[1]*s[1]/o/o,c=e[0]*e[0]/i/i+e[1]*e[1]/o/o-1,h=[],d=u*u-4*l*c;if(0===d)h.push(-u/2/l);else if(d>0){let e=Math.sqrt(d);h.push((-u+e)/2/l),h.push((-u-e)/2/l)}return p("intersection",...h.filter(e=>e>=0&&e<=1).map(i=>r.l.add(n,r.l.add(e,r.l.mul(r.l.sub(t,e),i)))).map(e=>r.l.rotWith(e,n,a)))}function x(e,t,n){var r=n,i=e,o=t;let{minX:a,minY:s,width:l,height:u}=r;return E([a,s],[l,u],i,o)}function k(e,t,n){let r=[];for(let i=1;i{let a=b(n,r,i,o);return a&&e.push(p(t,...a.points)),e},[]).filter(e=>e.didIntersect)}function A(e,t,n,r){return f(e,t).reduce((e,[t,[i,o]])=>{let a=w(i,o,n,r);return a&&e.push(d(h({},a),{message:t})),e},[]).filter(e=>e.didIntersect)}function S(e,t,n,i,o){let{minX:a,minY:s,width:l,height:u}=o;var c=e,m=t,g=n,y=i,v=[a,s],b=[l,u];return f(v,b).reduce((e,[t,[n,i]])=>{let o=function(e,t,n,i,o,a){let s=r.l.angle(e,n),l=r.l.angle(e,i),u=function(e,t,n,r=0,i,o){return t===n?w(i,o,e,t):_(i,o,e,t,n,r)}(e,t,t,0,o,a);if(!u.didIntersect)return p("no intersection");let c=u.points.filter(t=>(function(e,t,n){if(n===e||n===t)return!0;let r=2*Math.PI,i=(t-e+r)%r;return i<=Math.PI!=(n-e+r)%r>i})(s,l,r.l.angle(e,t)));return 0===c.length?p("no intersection"):p("intersection",...c)}(c,m,g,y,n,i);return o&&e.push(d(h({},o),{message:t})),e},[]).filter(e=>e.didIntersect)}function T(e,t,n,r){return w(n,r,e,t)}function C(e,t,n,r){let i=n[0]-e[0],o=n[1]-e[1],a=Math.sqrt(i*i+o*o),s=(a*a-r*r+t*t)/(2*a),l=Math.sqrt(t*t-s*s);return i/=a,o/=a,p("intersection",[e[0]+i*s-o*l,e[1]+o*s+i*l],[e[0]+i*s+o*l,e[1]+o*s-i*l])}function P(e,t,n,r,i){let{minX:o,minY:a,width:s,height:l}=i;return function(e,t,n,r=0,i,o){return t===n?A(i,o,e,t):function(e,t,n,r,i,o=0){return f(e,t).reduce((e,[t,[a,s]])=>{let l=_(a,s,n,r,i,o);return l&&e.push(d(h({},l),{message:t})),e},[]).filter(e=>e.didIntersect)}(i,o,e,t,n,r)}(e,t,n,r,[o,a],[s,l])}function O(e,t){var n,r,i,o;return n=[e.minX,e.minY],r=[e.width,e.height],i=[t.minX,t.minY],o=[t.width,t.height],f(n,r).reduce((e,[t,[n,r]])=>{let a=E(i,o,n,r);return e.push(...a.map(e=>p(`${t} ${e.message}`,...e.points))),e},[]).filter(e=>e.didIntersect)}function M(e,t){var n,r,i,o,a;return n=t,i=[(r=e).minX,r.minY],o=[r.width,r.height],a=n,f(i,o).reduce((e,[t,[n,r]])=>{let i=k(n,r,a);return i.didIntersect&&e.push(p(t,...i.points)),e},[]).filter(e=>e.didIntersect)}function R(e,t){return N(t,e)}function N(e,t){var n,r;return n=[t.minX,t.minY],r=[t.width,t.height],f(n,r).reduce((t,[n,[r,i]])=>{let o=function(e,t,n){let r=[];for(let i=1;ie.didIntersect)}},41352:(e,t,n)=>{"use strict";let r,i;n.d(t,{qO:()=>ev,To:()=>eu,Ay:()=>eu});var o=n(3670),a=n(51598);let s=(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var l=n(78619);function u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var c=0;function h(e){return"__private_"+c+++"_"+e}var d=h("callbacks"),p=h("publish");class f{constructor(){Object.defineProperty(this,p,{value:m}),Object.defineProperty(this,d,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,u(this,p)[p](t,n,e)}subscribe(e){return u(this,d)[d].add(e),()=>{u(this,d)[d].delete(e)}}}function m(){for(var e=arguments.length,t=Array(e),n=0;n{e(...t)})}function g(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}f.VERSION="3.0.2";var y=n(89557);function v(e){let t="";return e.replace(/[^A-Z0-9]/ig,e=>(t+=`-${e.charCodeAt(0).toString(32)}`,"/"))+t}function b(e){return e<10?`0${e}`:e.toString()}function w(){let e=new Date,t=b(e.getHours()),n=b(e.getMinutes()),r=b(e.getSeconds());return`${t}:${n}:${r}`}let _={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.getOpts().restrictions;if(o&&t.filter(e=>!e.isGhost).length+1>o)throw new S(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(t=>t.includes("/")?!!e.type&&E(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){let e=a.join(", ");throw new S(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size&&t.reduce((e,t)=>e+t.size,e.size)>i)throw new S(this.i18n("exceedsSize",{size:k(i),file:e.name}));if(n&&null!=e.size&&e.size>n)throw new S(this.i18n("exceedsSize",{size:k(n),file:e.name}));if(r&&null!=e.size&&e.sizee,onBeforeUpload:e=>e,store:new f,logger:_,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=x),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=l(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(".");return n=parseInt(n,10),r=parseInt(r,10),!!(n<15)||15===n&&!!(r<15063)||!!(n>18)||18===n&&!!(r>=18218)}(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),P(this,N)[N]=new T(()=>this.opts,this.i18n),P(this,D)[D]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),P(this,q)[q]()}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new o.A([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){P(this,L)[L].add(e)}removePreProcessor(e){return P(this,L)[L].delete(e)}addPostProcessor(e){P(this,j)[j].add(e)}removePostProcessor(e){return P(this,j)[j].delete(e)}addUploader(e){P(this,F)[F].add(e)}removeUploader(e){return P(this,F)[F].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=r.filter(e=>e.progress.uploadStarted),l=r.filter(e=>e.isPaused),u=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),h=i.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:h,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{P(this,N)[N].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){P(this,z)[z](e);let{files:t}=this.getState(),n=P(this,$)[$](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),P(this,W)[W](),n.id}addFiles(e){P(this,z)[z]();let t={...this.getState().files},n=[],r=[];for(let i=0;i{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name} id: ${n[e].id} type: ${n[e].type}`)}),n.length>0&&P(this,W)[W](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete i[e])}),Object.keys(o).forEach(e=>{let t=r[e].fileIDs.filter(s);if(0===t.length)return void delete o[e];let{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw Error("individualCancellation is disabled");o[e]={...r[e],fileIDs:t}});let l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();let u=Object.keys(a);u.forEach(e=>{this.emit("file-removed",a[e],t)}),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});let n=P(this,Y)[Y](t,{forceAllowNewUpload:!0});return P(this,K)[K](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);let t=P(this,Y)[Y]([e],{forceAllowNewUpload:!0});return P(this,K)[K](t)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length){this.emit("progress",0),this.setState({totalProgress:0});return}let t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){let t=100*e.length,r=Math.round(n.reduce((e,t)=>e+t.progress.percentage,0)/t*100);this.setState({totalProgress:r});return}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0),i=r/t.length;r+=i*n.length;let o=0;t.forEach(e=>{o+=e.progress.bytesUploaded}),n.forEach(e=>{o+=i*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(o/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error("Your plugin must have an id");if(!n.type)throw Error("Your plugin must have a type");let i=this.getPlugin(r);if(i)throw Error(`Already found a plugin named '${i.id}'. Tried to use: '${r}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`);return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in P(this,R)[R]?P(this,R)[R][n.type].push(n):P(this,R)[R][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(P(this,R)[R])){let n=t.find(t=>t.id===e);if(null!=n)return n}}[r](e){return P(this,R)[R][e]}iteratePlugins(e){Object.values(P(this,R)[R]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=P(this,R)[R][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),P(this,D)[D](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",P(this,V)[V]),window.removeEventListener("offline",P(this,V)[V]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);let r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){let{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?P(this,K)[K](e):(P(this,G)[G](e),Promise.reject(Error("Nonexistent upload")))}[i](){return P(this,Y)[Y](...arguments)}addResultData(e,t){if(!P(this,X)[X](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=P(this,R)[R].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>P(this,N)[N].validateMinNumberOfFiles(t)).catch(e=>{throw P(this,B)[B](e),e}).then(()=>{if(!P(this,H)[H](t))throw new S(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});let i=P(this,Y)[Y](r);return P(this,K)[K](i)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function J(e,t){let{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(e,"warning")}function Q(e){let{missingFields:t,error:n}=P(this,N)[N].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function ee(e){let t=!0;for(let n of Object.values(e))P(this,U)[U](n)||(t=!1);return t}function et(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new S(this.i18n("noMoreFilesAllowed"));throw P(this,B)[B](t,e),t}}function en(e,t){var n,r;let i;t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});let o=function(e){var t;if(e.type)return e.type;let n=e.name?null==(t=g(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in y.A?y.A[n]:"application/octet-stream"}(t),a=(n=t).name?n.name:"image"===o.split("/")[0]?`${o.split("/")[0]}.${o.split("/")[1]}`:"noname",s=g(a).extension,l=!!t.isRemote,u=(r={...t,type:o},i="uppy","string"==typeof r.name&&(i+=`-${v(r.name.toLowerCase())}`),void 0!==r.type&&(i+=`-${r.type}`),r.meta&&"string"==typeof r.meta.relativePath&&(i+=`-${v(r.meta.relativePath.toLowerCase())}`),void 0!==r.data.size&&(i+=`-${r.data.size}`),void 0!==r.data.lastModified&&(i+=`-${r.data.lastModified}`),i);if(this.checkIfFileAlreadyExists(u)){let e=new S(this.i18n("noDuplicates",{fileName:a}));throw P(this,B)[B](e,t),e}let c=t.meta||{};c.name=a,c.type=o;let h=Number.isFinite(t.data.size)?t.data.size:null,d={source:t.source||"",id:u,name:a,extension:s||"",meta:{...this.getState().meta,...c},type:o,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:h,uploadComplete:!1,uploadStarted:null},size:h,isRemote:l,remote:t.remote||"",preview:t.preview},p=this.opts.onBeforeFileAdded(d,e);if(!1===p){let e=new S("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof p&&null!==p&&(d=p);try{let t=Object.keys(e).map(t=>e[t]);P(this,N)[N].validate(d,t)}catch(e){throw P(this,B)[B](e,d),e}return d}function er(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ei(){let e,t=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),"object"==typeof n&&n.message){let t=Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),P(this,B)[B](t)}else P(this,B)[B](n)}),this.on("upload-stalled",(t,n)=>{let{message:r}=t,i=n.map(e=>e.meta.name).join(", ");e||(this.info({message:r,details:i},"warning",this.opts.infoTimeout),e=setTimeout(()=>{e=null},this.opts.infoTimeout)),this.log(`${r} ${i}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:P(this,j)[j].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&P(this,U)[U](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",P(this,V)[V]),window.addEventListener("offline",P(this,V)[V]),setTimeout(P(this,V)[V],3e3))}function eo(e,t){void 0===t&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error("Cannot create a new upload: already uploading.");let o=s();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function ea(e){let{currentUploads:t}=this.getState();return t[e]}function es(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function el(e){let t,{currentUploads:n}=this.getState(),r=n[e],i=r.step||0,o=[...P(this,L)[L],...P(this,F)[F],...P(this,j)[j]];try{for(let t=i;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=r.fileIDs.map(e=>this.getFile(e)),i=t.filter(e=>!e.error),o=t.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),r=(n=this.getState().currentUploads)[e]}return r&&(t=r.result,this.emit("complete",t),P(this,G)[G](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}Z.VERSION="3.0.6";let eu=Z;var ec=n(18257),eh=n(74044),ed=n(99596),ep=n(94352);function ef(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var em=0,eg="__private_"+em+++"_updateUI";class ey extends ep.A{constructor(){super(...arguments),Object.defineProperty(this,eg,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return"object"==typeof e&&e instanceof ey?t=e:"function"==typeof e&&this.uppy.iteratePlugins(n=>{n instanceof e&&(t=n)}),t}mount(e,t){var n,r;let i=t.id,o=(void 0===n&&(n=document),"string"==typeof e)?n.querySelector(e):(0,eh.A)(e)?e:null;if(o){let t,n;this.isTargetDOMEl=!0;let a=document.createElement("div");return a.classList.add("uppy-Root"),ef(this,eg)[eg]=(r=e=>{this.uppy.getPlugin(this.id)&&((0,ec.XX)(this.render(e),a),this.afterUpdate())},t=null,n=null,function(){for(var e=arguments.length,i=Array(e),o=0;o(t=null,r(...n)))),t}),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),(0,ec.XX)(this.render(this.uppy.getState()),a),this.el=a,o.appendChild(a),a.dir=this.opts.direction||(0,ed.A)(a)||"ltr",this.onMount(),this.el}let a=this.getTargetPlugin(e);if(a)return this.uppy.log(`Installing ${i} to ${a.id}`),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let s=`Invalid target option given to ${i}.`;throw"function"==typeof e?s+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":s+="If you meant to target an HTML element, please make sure that the element exists. Check that the